-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (32 loc) · 744 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (32 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16"
- name: Install and Build 🔧
run: |
npm ci
npm run build:dev
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.5.0
if: github.event_name == 'push' && github.ref_name == 'master'
with:
branch: gh-pages
folder: dist
clean: false