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+ # Deploys blog/ to GitHub Pages (blog/index.html is the site homepage).
2+ # One-time: repo Settings → Pages → Build and deployment → Source → GitHub Actions.
3+
4+ name : Deploy blog to GitHub Pages
5+
6+ on :
7+ push :
8+ branches : [main]
9+ workflow_dispatch :
10+
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ concurrency :
17+ group : " pages"
18+ cancel-in-progress : false
19+
20+ jobs :
21+ deploy :
22+ environment :
23+ name : github-pages
24+ url : ${{ steps.deployment.outputs.page_url }}
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+ - name : Setup Pages
30+ uses : actions/configure-pages@v5
31+ - name : Upload blog artifact
32+ uses : actions/upload-pages-artifact@v3
33+ with :
34+ path : ./blog
35+ - name : Deploy to GitHub Pages
36+ id : deployment
37+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments