Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github action for automated release #20

Merged
merged 6 commits into from
Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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