File tree Expand file tree Collapse file tree 1 file changed +26
-12
lines changed Expand file tree Collapse file tree 1 file changed +26
-12
lines changed Original file line number Diff line number Diff line change 1- name : Deploy to GitHub Pages
1+ # Simple workflow for deploying static content to GitHub Pages
2+ name : Deploy static content to Pages
23
34on :
5+ # Runs on pushes targeting the default branch
46 push :
5- branches :
6- - main
7+ branches : ["main"]
8+
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
720
821jobs :
9- # Deploy job
22+ # Single deploy job since we're just deploying
1023 deploy :
11- # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
12- permissions :
13- pages : write # to deploy to Pages
14- id-token : write # to verify the deployment originates from an appropriate source
15-
16- # Deploy to the github-pages environment
1724 environment :
1825 name : github-pages
1926 url : ${{ steps.deployment.outputs.page_url }}
20-
21- # Specify runner + deployment step
2227 runs-on : ubuntu-latest
2328 steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+ - name : Setup Pages
32+ uses : actions/configure-pages@v5
33+ - name : Upload artifact
34+ uses : actions/upload-pages-artifact@v3
35+ with :
36+ # Upload entire repository
37+ path : ' .'
2438 - name : Deploy to GitHub Pages
2539 id : deployment
2640 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments