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