-
Notifications
You must be signed in to change notification settings - Fork 46
47 lines (40 loc) · 1.05 KB
/
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
name: Build
on:
push:
branches: [ master ]
pull_request:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
cache: yarn
- name: Install dependencies
run: |
yarn install
- name: Build
env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
run: |
script/ci-build.sh ${{ github.event_name }}
- name: Upload asar
uses: actions/upload-artifact@v4
with:
name: asar
path: build/*.asar
- name: Notify webhook
if: github.event_name == 'push' && github.ref_name == 'master'
run: |
curl --silent ${{ secrets.WEBHOOK_URL }}