-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.yml
46 lines (42 loc) · 1.08 KB
/
release.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
name: release-build
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: build windows app
run: |
yarn
yarn release
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.ZYPLAYER_TOKEN }}
- name: upload file
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}
path: dist_electron
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
# files: "dist_electron/**"
files: |
dist_electron/*.exe
dist_electron/*.dmg
dist_electron/*.AppImage
dist_electron/latest-linux.yml
dist_electron/latest-mac.yml
dist_electron/latest.yml
env:
GITHUB_TOKEN: ${{ secrets.ZYPLAYER_TOKEN }}