From 675f00b8a00510335ca449e6e83446c7dcbdbe28 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 21 Dec 2021 17:02:07 +0800 Subject: [PATCH] no message --- .github/workflows/electron.yml | 45 ++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 116b76e6..47ee3570 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -6,29 +6,13 @@ on: - 'v*' jobs: - build: - - runs-on: ${{ matrix.os }} - environment: build - - strategy: - matrix: - os: [macos-11] - platform: [ - build-mac, - build-mac-arm, - build-win - ] - + release: + runs-on: ubuntu-latest + if: startsWith(github.event.ref, 'refs/tags/v') steps: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: Changelog uses: scottbrenner/generate-changelog-action@master id: Changelog @@ -48,6 +32,29 @@ jobs: draft: false prerelease: false + build: + runs-on: ${{ matrix.os }} + environment: build + + strategy: + matrix: + os: [macos-11] + platform: [ + build-mac, + build-mac-arm, + build-win + ] + + if: startsWith(github.event.ref, 'refs/tags/v') + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Use Node.js 14.x + uses: actions/setup-node@v1 + with: + node-version: 14.x + - name: Build env: GH_TOKEN: ${{ secrets.GH_PAT }}