-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 929 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
name: "Build and Release"
on:
push:
tags:
- 'v[0-9]+.[0-9]+'
jobs:
build-and-save-artifact:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Checkout the branch that triggered the workflow.
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.13.0'
- name: npm install, build
env:
NODE_OPTIONS: "--max_old_space_size=8000"
run: |
cd viplab-standalone-frontend-vue
npm install
npm run build
- name: Archive dist
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'dist.zip'
path: 'viplab-standalone-frontend-vue/dist'
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist.zip"