-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (38 loc) · 1.01 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
name: Release
on:
push:
tags: '*'
jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.8.0
cache: 'npm'
- run: python3 -m pip install setuptools
- run: npm install
- run: npm run build
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.dmg,dist/*.exe,dist/*.blockmap,dist/*.deb,dist/*.AppImage,dist/*.pacman"
token: ${{ github.token }}
- run: mv dist jlivertool
- name: Upload to oss
id: upload_to_oss
uses: tvrcgo/upload-to-oss@master
with:
key-id: ${{ secrets.OSS_KEY_ID }}
key-secret: ${{ secrets.OSS_KEY_SECRET }}
region: oss-cn-beijing
bucket: raw-content
assets: |
jlivertool/*.dmg:/
jlivertool/*.exe:/
jlivertool/*.yml:/
jlivertool/*.blockmap:/
jlivertool/*.deb:/
jlivertool/*.AppImage:/
jlivertool/*.pacman:/