🐛 更新版本

This commit is contained in:
Tw93
2022-11-30 20:19:38 +08:00
parent ae9369c41d
commit bc90d0eb40

View File

@@ -3,7 +3,7 @@ on:
push: push:
# Sequence of patterns matched against refs/tags # Sequence of patterns matched against refs/tags
tags: tags:
- "v*" - "V*"
jobs: jobs:
build: build:
@@ -30,7 +30,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: install node - name: install node
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
@@ -43,21 +43,21 @@ jobs:
profile: minimal profile: minimal
override: true override: true
target: ${{ matrix.target }} target: ${{ matrix.target }}
- name: install dependencies (ubuntu only) - name: install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: build for Ubuntu - name: build for Ubuntu
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: npm run build:all-unix run: npm run build:all-unix
- name: build for MacOS - name: build for MacOS
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
run: npm run build:all-unix run: npm run build:all-unix
- name: build for windows - name: build for windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: |
@@ -74,10 +74,10 @@ jobs:
# prerelease: false # prerelease: false
# files: | # files: |
# output/*/*.* # output/*/*.*
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
with: with:
allowUpdates: true allowUpdates: true
artifacts: "output/*/*.*" artifacts: "output/*/*.*"
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}