Update release.yml

This commit is contained in:
Martin McKeaveney 2020-05-14 22:27:38 +01:00 committed by GitHub
parent 4689142912
commit 81902510c8
1 changed files with 28 additions and 37 deletions

View File

@ -5,11 +5,13 @@ on:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
release:
runs-on: ${{ matrix.os }}
# Platforms to build on/for
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [10.x]
steps:
@ -23,25 +25,14 @@ jobs:
- run: yarn build
# - run: yarn test
# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - name: Publish NPM
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-electron:
needs: [build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with: