File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 release :
55 types : [published]
66
7+ permissions :
8+ contents : write
9+ pages : write
10+ id-token : write
11+
712env :
813 IMAGE : ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
914
1015jobs :
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 :
You can’t perform that action at this time.
0 commit comments