-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 910 Bytes
/
build.yml
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
38
39
40
41
42
43
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
if: '!contains(github.event.head_commit.message, ''skip ci'') && !contains(github.event.head_commit.message, ''dependabot'')'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set node
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
node-version: 16.x
- name: Setup
run: npm i -g pnpm
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
single-commit: true
clean: true
target-folder: v1