File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Simple workflow for deploying static content to GitHub Pages
2- name : Deploy static content to Pages
1+ # Deploy static documentation (index.html) to GitHub Pages
2+ name : Deploy Docs to Pages
33
44on :
5- # Runs on pushes targeting the default branch
65 push :
76 branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
107 workflow_dispatch :
118
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139permissions :
1410 contents : read
1511 pages : write
1612 id-token : write
1713
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : true
17+
1818jobs :
1919 deploy :
2020 runs-on : ubuntu-latest
2121 steps :
22- - uses : actions/checkout@v4
23- - uses : actions/configure-pages@v4
24- - uses : actions/upload-pages-artifact@v2
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Configure GitHub Pages
26+ uses : actions/configure-pages@v4
27+
28+ - name : Upload site artefact
29+ uses : actions/upload-pages-artifact@v3
2530 with :
26- path : " ." # index.html is in root
27- - uses : actions/deploy-pages@v2
31+ path : " ." # repo root contains index.html
32+
33+ - name : Deploy to Pages
34+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments