diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..234280a --- /dev/null +++ b/.github/workflows/release.yml @@ -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') }} \ No newline at end of file diff --git a/README.md b/README.md index 8c3dccb..92ee73e 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/package.json b/package.json index fbc0441..31e0ef3 100644 --- a/package.json +++ b/package.json @@ -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",