Skip to content

Commit

Permalink
Merge pull request #103 from chips-blockchain/electron-builder-action
Browse files Browse the repository at this point in the history
Add build/release automation to Electron
  • Loading branch information
norbertdragan authored Feb 27, 2020
2 parents dfdeae6 + 65e2e5f commit 32662a7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# https://github.com/marketplace/actions/electron-builder-action

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') }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "pangea-poker-gui",
"version": "0.4.0",
"description": "",
"description": "Decentralized Poker via the CHIPS Blockchain",
"main": "src/electron.js",
"scripts": {
"build": "parcel build src/index.html --out-dir build --public-url ./ && npm run electron-pack",
"build": "parcel build src/index.html --out-dir build --public-url ./",
"dev": "parcel src/index.html",
"electron-dev": "concurrently \"BROWSER=none npm start\" \"wait-on http://localhost:1234 && electron .\"",
"electron-pack": "electron-builder -mwl",
Expand Down

0 comments on commit 32662a7

Please sign in to comment.