feat: change mainwindow watcher count data source #44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: '*' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.8.0 | |
cache: 'npm' | |
- run: brew install python-setuptools | |
- run: npm install | |
- name: generate version | |
run: echo "${{ github.ref }}" | sed 's/refs\/tags\/v//g' | xargs npm version --no-git-tag-version | |
- 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 }} | |
draft: true | |
- 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:/ |