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