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,37 +25,26 @@ 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 # - run: npm publish
# - uses: actions/setup-node@v1 # env:
# with: # NODE_AUTH_TOKEN: ${{secrets.npm_token}}
# node-version: ${{ matrix.node-version }}
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-electron: - name: Build/release Electron app
needs: [build] uses: samuelmeuli/action-electron-builder@v1
runs-on: ${{ matrix.os }} with:
strategy: # GitHub token, automatically provided to the action
matrix: # (No need to define this secret in the repo settings)
os: [macos-latest, ubuntu-latest, windows-latest] github_token: ${{ secrets.github_token }}
steps:
- 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 }}
# release the app after building # release the app after building
package_root: packages/server package_root: packages/server
release: true release: true
# mac_certs: ${{ secrets.mac_certs }} # mac_certs: ${{ secrets.mac_certs }}
# mac_certs_password: ${{ secrets.mac_certs_password }} # mac_certs_password: ${{ secrets.mac_certs_password }}
# windows_certs: ${{ secrets.windows_certs }} # windows_certs: ${{ secrets.windows_certs }}
# windows_certs_password: ${{ secrets.windows_certs_password }} # windows_certs_password: ${{ secrets.windows_certs_password }}
# snapcraft_token: ${{ secrets.snapcraft_token }} # snapcraft_token: ${{ secrets.snapcraft_token }}