File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed 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
3+
4+ on :
5+ # Runs on pushes targeting the default branch
6+ push :
7+ branches : ["main"]
8+
9+ # Allows you to run this workflow manually from the Actions tab
10+ workflow_dispatch :
11+
12+ defaults :
13+ run :
14+ shell : pwsh
15+
16+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17+ permissions :
18+ contents : read
19+ pages : write
20+ id-token : write
21+
22+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
23+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
24+ concurrency :
25+ group : " pages"
26+ cancel-in-progress : false
27+
28+ jobs :
29+ # Single deploy job since we're just deploying
30+ deploy :
31+ environment :
32+ name : github-pages
33+ url : ${{ steps.deployment.outputs.page_url }}
34+ runs-on : ubuntu-latest
35+ steps :
36+ - name : Checkout repo from branch '${{github.ref_name}}'
37+ uses : actions/checkout@v3
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v3
40+ - name : Upload Pages artifact
41+ uses : actions/upload-pages-artifact@v2
42+ with :
43+ # # path to upload
44+ path : ' ./siteContents'
45+ - name : Deploy to GitHub Pages
46+ id : deployment
47+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments