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