File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change 1- # Simple workflow for deploying static content to GitHub Pages
21name : Deploy static content to Pages
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
75 branches : ["main"]
8-
9- # Allows you to run this workflow manually from the Actions tab
106 workflow_dispatch :
117
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
138permissions :
149 contents : read
1510 pages : write
1611 id-token : write
1712
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2013concurrency :
2114 group : " pages"
2215 cancel-in-progress : false
2316
2417jobs :
25- # Single deploy job since we're just deploying
26- deploy :
27- environment :
28- name : github-pages
29- url : ${{ steps.deployment.outputs.page_url }}
18+ build :
3019 runs-on : ubuntu-latest
3120 steps :
3221 - name : Checkout
33- uses : actions/checkout@v3
22+ uses : actions/checkout@v4
23+
3424 - name : Setup Pages
35- uses : actions/configure-pages@v3
25+ uses : actions/configure-pages@v5
26+
3627 - name : Upload artifact
3728 uses : actions/upload-pages-artifact@v4
3829 with :
39- # Upload entire repository
40- path : ' ./example'
30+ path : ./example
31+
32+ deploy :
33+ needs : build
34+ environment :
35+ name : github-pages
36+ url : ${{ steps.deployment.outputs.page_url }}
37+ runs-on : ubuntu-latest
38+ steps :
4139 - name : Deploy to GitHub Pages
4240 id : deployment
43- uses : actions/deploy-pages@v2
41+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments