Skip to content

Commit d9dd71e

Browse files
committed
Add GitHub Pages workflow for blog/
1 parent 97cdbd8 commit d9dd71e

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)