forked from dice2o/BingGPT
-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (48 loc) · 1.32 KB
/
main.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
51
52
53
54
55
56
57
58
59
60
name: Build/release
on:
push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Install Depentent
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y rpm fakeroot
- name: Check out Git repository
uses: actions/checkout@v1
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 16
# step5: cleanup artifacts in dist_electron
#- name: cleanup package lock
# run: |
# npx rimraf "package-lock.json"
# step3: npm install
- name: npm install
run: |
npm install
# step4: build app
- name: build app
run: |
npm run make
# step6: upload artifacts
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: 'out/make'
# step7: create release
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "out/make/**"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}