Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pure-Peace committed Jul 17, 2020
1 parent 818f015 commit 6e93d28
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build/release

on: push
on:
push:
tags:
- 'v*.*.*'

jobs:
release:
Expand All @@ -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') }}
env:
GH_TOKEN: ${{ secrets.github_token }}
run: |
npm install
npm run release

0 comments on commit 6e93d28

Please sign in to comment.