File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - ' **'
1010
1111jobs :
12- test :
13- if : github.ref != 'refs/heads/main'
14- runs-on : ubuntu-latest
15- container :
16- image : python:3.8-buster
17- steps :
18- - name : Checkout code
19- uses : actions/checkout@v4
20-
21- - name : Install dependencies
22- run : pip install -r requirements.txt
23-
24- - name : Build MkDocs site for testing
25- run : mkdocs build --strict --verbose --site-dir test
26-
27- - name : Upload test artifacts
28- uses : actions/upload-artifact@v4
29- with :
30- name : test
31- path : test
32-
33- deploy :
34- if : github.ref == 'refs/heads/main'
12+ build :
3513 runs-on : ubuntu-latest
3614 container :
3715 image : python:3.8-buster
4624 run : mkdocs build --strict --verbose
4725
4826 - name : Upload deployment artifacts
49- uses : actions/upload-artifact@v4
27+ uses : actions/upload-pages- artifact@v3
5028 with :
51- name : public
5229 path : public
30+
31+ deploy :
32+ # if: github.ref == 'refs/heads/main'
33+ runs-on : ubuntu-latest
34+ needs : build
35+ permissions :
36+ pages : write
37+ id-token : write
38+ environment :
39+ name : github-pages
40+ url : ${{ steps.deployment.outputs.page_url }}
41+ steps :
42+ - name : Deploy to GitHub Pages
43+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments