Skip to content

Commit

Permalink
release v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCowKingmoo committed Jun 9, 2020
1 parent 7fbc9e4 commit 8da2888
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Source
# https://github.com/samuelmeuli/action-electron-builder
# Source for release action https://github.com/samuelmeuli/action-electron-builder
# See README on use

name: release
Expand All @@ -22,16 +21,20 @@ jobs:
fetch-depth: '0'

- name: get package version
# this will get use the version number in package.json in the format vx.x.x
run: echo "::set-env name=PACKAGE_VER::$(cat package.json | grep version | head -1 | awk '{print $2}' | sed 's/[\",]//g' | perl -ne 'print "v$_"')"

- name: check for existing tags
# this will check if master has any tags with the pulled version in the format vx.x.x
run: echo "::set-env name=NEW_VERSION::$(git tag -l ${{env.PACKAGE_VER}})"

- id: setoutput
# here is how we trigger the build commands to run - this passes a boolean to our build_and_release job
if: ${{!contains(env.NEW_VERSION, env.PACKAGE_VER)}}
run: echo "::set-output name=release::true"

- name: Bump version and push tag
# if we do have a new release then we tag the repo with the line vx.x.x that we pulled earlier
if: ${{!contains(env.NEW_VERSION, env.PACKAGE_VER)}}
uses: anothrNick/[email protected]
env:
Expand All @@ -47,7 +50,8 @@ jobs:
matrix:
os: [macos-latest, windows-latest]
needs: tagger

if: ${{needs.tagger.outputs.output1}}

steps:
- name: Check out Git repository
uses: actions/checkout@v1
Expand All @@ -56,7 +60,6 @@ jobs:
uses: actions/setup-node@v1

- name: Build and Release Electron app
if: ${{needs.tagger.outputs.output1}}
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"category": "Office"
}
},
"version": "1.0.5",
"version": "1.0.6",
"description": "",
"main": "./app/main.js",
"scripts": {
Expand Down

0 comments on commit 8da2888

Please sign in to comment.