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+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ workflow_dispatch :
7+
8+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
18+
19+ jobs :
20+ deploy :
21+ environment :
22+ name : github-pages
23+ url : ${{ steps.deployment.outputs.page_url }}
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+ with :
29+ lfs : false # Skip LFS files to avoid quota errors and speed up build
30+ - name : Setup Pages
31+ uses : actions/configure-pages@v4
32+ - name : Upload artifact
33+ uses : actions/upload-pages-artifact@v3
34+ with :
35+ path : ' .'
36+ - name : Deploy to GitHub Pages
37+ id : deployment
38+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments