Skip to content

Merge pull request #31 from Xinrea/develop #30

Merge pull request #31 from Xinrea/develop

Merge pull request #31 from Xinrea/develop #30

Workflow file for this run

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:/