Skip to content

Commit 9bbe5a0

Browse files
committed
add: github action
1 parent c188551 commit 9bbe5a0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches: [main]
5+
permissions:
6+
contents: write
7+
jobs:
8+
build-and-deploy:
9+
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v4
14+
15+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
16+
run: |
17+
npm ci
18+
npm run build
19+
20+
- name: Deploy 🚀
21+
uses: JamesIves/github-pages-deploy-action@v4
22+
with:
23+
folder: dist # The folder the action should deploy.

0 commit comments

Comments
 (0)