Skip to content

Commit 40745c5

Browse files
committed
support GitHub Pages
1 parent d735697 commit 40745c5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on: { push: { tags: [production] } }
2+
3+
jobs:
4+
deploy:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
pages: write
8+
id-token: write
9+
environment:
10+
name: github-pages
11+
url: ${{ steps.deployment.outputs.page_url }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/configure-pages@v3
17+
- run: npm ci && npm run build
18+
- uses: actions/upload-pages-artifact@v1
19+
with:
20+
path: build
21+
- id: deployment
22+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)