Skip to content

Commit a54b975

Browse files
committed
Add deploy workflow
1 parent 39209f3 commit a54b975

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
steps:
20+
- name: Checkout
21+
run: actions/checkout@v3
22+
- name: Set up Node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
cache: 'npm'
27+
- name: Install dependencies
28+
run: npm install
29+
- name: Build
30+
run: npm run build
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v3
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v1
35+
with:
36+
path: './out'
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)