Skip to content

Commit 5554fd4

Browse files
committed
Add github action for deploying
1 parent 9fd78ed commit 5554fd4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-deploy:
13+
# Recommended if you intend to make multiple deployments in quick succession.
14+
# concurrency: ci-${{ github.ref }}
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install and Build
22+
run: |
23+
npm ci
24+
npm run build
25+
26+
- name: Deploy 🚀
27+
uses: JamesIves/github-pages-deploy-action@v4
28+
with:
29+
folder: dist # The folder the action should deploy.
30+
clean: true

0 commit comments

Comments
 (0)