-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 924 Bytes
/
action.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
44
name: Build
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16.15.0']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 6.0.2
- name: Install package and Build 🔧
run: |
pnpm install
- name: Build 🔧
run: |
pnpm run build
cp dist/index.html dist/404.html # vue-router history mode
# - name: Deploy 🚀
# uses: JamesIves/github-pages-deploy-action@4.1.5
# with:
# # folder dist/* -> branch gh-pages /
# branch: gh-pages
# folder: dist