From 6e93d289456dde27d35ed604139229633d97cf03 Mon Sep 17 00:00:00 2001 From: Pure-Peace <940857703@qq.com> Date: Fri, 17 Jul 2020 13:16:23 +0800 Subject: [PATCH] update --- .github/workflows/main.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 498106f..f883770 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: Build/release -on: push +on: + push: + tags: + - 'v*.*.*' jobs: release: @@ -18,14 +21,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: 13 - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.github_token }} - - # If the commit is tagged with a version (e.g. "v1.0.0"), - # release the app after building - release: ${{ startsWith(github.ref, 'refs/tags/v') }} \ No newline at end of file + env: + GH_TOKEN: ${{ secrets.github_token }} + run: | + npm install + npm run release \ No newline at end of file