-
Notifications
You must be signed in to change notification settings - Fork 45
45 lines (39 loc) · 909 Bytes
/
ci.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
name: CI
on:
push:
branches: [master]
release:
types: [created]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn
- name: Build
env:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
QINIU_AK: ${{ secrets.QINIU_AK }}
QINIU_SK: ${{ secrets.QINIU_SK }}
run: |
yarn install
BUILD_MODE=push
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
BUILD_TYPE=tag
fi
script/ci-build.sh "$BUILD_MODE"
- name: Upload asar
uses: actions/upload-artifact@v3
with:
name: asar
path: build/*.asar