Skip to content

Commit 281f50b

Browse files
committed
ci(pages): deploy GitHub Pages on push to main (and manual/merge-queue). No build; upload repo root via official Pages actions.
1 parent 7755fb5 commit 281f50b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Manual trigger
8+
workflow_dispatch:
9+
# Optional: run when using GitHub merge queue
10+
merge_group:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: true
20+
21+
jobs:
22+
deploy:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v5
30+
31+
- name: Disable Jekyll
32+
run: echo > .nojekyll
33+
34+
# For this project there is no build step; deploy the repo root
35+
- name: Upload Pages artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: .
39+
40+
- name: Deploy to GitHub Pages
41+
id: deploy
42+
uses: actions/deploy-pages@v4
43+

0 commit comments

Comments
 (0)