Skip to content

Commit ef68ad8

Browse files
committed
Merge branch 'modernize-2026'
2 parents 17639eb + 29b7122 commit ef68ad8

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
13+
concurrency:
14+
group: deploy-pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: npm
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- name: Publish to gh-pages branch
38+
run: npx gh-pages -d dist -r https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
39+
env:
40+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ If you want to learn more about the API and curation tooling, see:
117117

118118
## Deployment
119119

120-
Run `npm run build` and deploy the generated `dist/` assets.
120+
GitHub Actions deploys to GitHub Pages on pushes to `main`/`master` using `gh-pages -d dist`.
121+
You can also run `npm run build` and publish the generated `dist/` assets manually.
121122

122123
## Credits
123124

0 commit comments

Comments
 (0)