-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1006 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
44
45
46
47
48
49
50
name: Build app package
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: Build app package
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install project
run: npm install
- name: Run lint
run: npm run lint
- name: Check code formatting
run: npm run format-check
- name: Download resources
run: |
bash levels.sh ${{ secrets.RES_HOST }} ${{ secrets.RES_PATH }}
- name: Build package
run: bash build.sh
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
files: |
apps/*.spa
apps/*.zip
apps/*.js
- name: Upload workflow artifacts
uses: actions/upload-artifact@v2
with:
name: beatsaber
path: |
apps/*.spa
apps/*.zip
apps/*.js