Skip to content

Commit bcc6afd

Browse files
committed
Add gh actions deployment workflow
1 parent 2d64edd commit bcc6afd

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build-and-deploy:
18+
runs-on: ubuntu-latest
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: npm
29+
30+
- run: npm ci
31+
32+
- run: npm run build
33+
34+
- uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: dist
37+
38+
- id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)