Skip to content

Commit a1aa2e2

Browse files
committed
Publish docs test
1 parent fa6496a commit a1aa2e2

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,50 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
pages: write
10+
id-token: write
11+
712
env:
813
IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
914

1015
jobs:
16+
build_mkdocs:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: 3.12
27+
- run: pip install -r docs/requirements.txt
28+
- run: mkdocs gh-deploy --config-file example-mkdocs/mkdocs.yml --force
29+
30+
deploy_mkdocs:
31+
needs: build_mkdocs
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
with:
40+
ref: gh-pages
41+
- name: Setup Pages
42+
uses: actions/configure-pages@v5
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: '.'
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4
50+
1151
docker:
1252
runs-on: ubuntu-latest
1353
steps:

0 commit comments

Comments
 (0)