Skip to content

Commit

Permalink
Merge pull request #20 from tbreuss/develop
Browse files Browse the repository at this point in the history
Add github action for automated release
  • Loading branch information
tbreuss committed Oct 24, 2020
2 parents 41fb93d + e3531a7 commit 7de0b18
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build/release

on: push

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 10

- 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') }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Asciitron is a simple Desktop [AsciiDoc](https://asciidoctor.org/docs/what-is-as
- [Ace (Ajax.org Cloud9 Editor)](https://ace.c9.io/)
- [Asciidoctor.js](https://asciidoctor.org/docs/asciidoctor.js/)
- [Asciidoctor Stylesheet Factory](https://github.com/asciidoctor/asciidoctor-stylesheet-factory)
- [Electron](https://www.electronjs.org/)
- [Highlight.js](https://highlightjs.org/)
- [Photon](http://photonkit.com/)

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"scripts": {
"start": "electron .",
"postinstall": "electron-builder install-app-deps",
"build": "electron-builder --mac --windows --linux",
"release": "electron-builder --mac --windows --linux --publish always"
"local:build": "electron-builder --mac --windows --linux",
"local:release": "electron-builder --mac --windows --linux --publish always"
},
"build": {
"appId": "ch.tebe.asciitron",
Expand Down

0 comments on commit 7de0b18

Please sign in to comment.