Skip to content

Commit c090627

Browse files
authored
Create gh-pages.yml
1 parent bfcb8c6 commit c090627

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy static site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or your default branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
# ── No build step needed for plain HTML ──
17+
18+
- name: Deploy to GitHub Pages
19+
uses: peaceiris/actions-gh-pages@v4
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
publish_dir: ./src # ← Point to your src folder
23+
cname: pass.castlefile.xyz # ← Uncomment if you didn’t commit src/CNAME

0 commit comments

Comments
 (0)