2020-04-26 20:33:39 +00:00
|
|
|
name: Release Core
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- core@*
|
|
|
|
|
2020-05-28 17:09:51 +00:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
GITHUB_REF: ${{ github.ref }}
|
|
|
|
GITHUB_SHA: ${{ github.sha }}
|
2020-07-28 05:18:26 +00:00
|
|
|
NPM_CONFIG_TARGET: 9.1.0
|
2020-05-28 17:09:51 +00:00
|
|
|
NPM_CONFIG_DISTURL: https://electronjs.org/headers
|
|
|
|
NPM_CONFIG_RUNTIME: electron
|
|
|
|
|
2020-04-26 20:33:39 +00:00
|
|
|
jobs:
|
|
|
|
Windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-2016
|
|
|
|
steps:
|
2020-05-28 17:09:51 +00:00
|
|
|
- uses: actions/checkout@v1
|
2020-07-28 05:18:26 +00:00
|
|
|
- name: Read Node version from .nvmrc
|
|
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
|
|
id: nvm
|
2020-05-28 17:09:51 +00:00
|
|
|
- uses: actions/setup-node@v1
|
2020-04-26 20:33:39 +00:00
|
|
|
with:
|
2020-07-28 05:18:26 +00:00
|
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
2020-05-28 17:09:51 +00:00
|
|
|
- run: npm run bootstrap
|
2020-07-01 23:52:49 +00:00
|
|
|
- run: npm run test:pre-release
|
2020-05-28 17:09:51 +00:00
|
|
|
- run: npm run app-release
|
2020-04-26 20:33:39 +00:00
|
|
|
env:
|
2020-05-28 17:09:51 +00:00
|
|
|
CSC_LINK: ${{ secrets.CORE_WINDOWS_CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.CORE_WINDOWS_CSC_KEY_PASSWORD }}
|
|
|
|
Mac:
|
|
|
|
name: Mac
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-07-28 05:18:26 +00:00
|
|
|
- name: Read Node version from .nvmrc
|
|
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
|
|
id: nvm
|
2020-05-28 17:09:51 +00:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-28 05:18:26 +00:00
|
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
2020-05-28 17:09:51 +00:00
|
|
|
- run: npm run bootstrap
|
2020-07-02 00:08:17 +00:00
|
|
|
- run: npm run test:pre-release
|
2020-05-28 17:09:51 +00:00
|
|
|
- run: npm run app-release
|
|
|
|
env:
|
|
|
|
APPLE_ID: ${{ secrets.CORE_APPLE_ID }}
|
|
|
|
APPLE_ID_PASSWORD: ${{ secrets.CORE_APPLE_ID_PASSWORD }}
|
|
|
|
CSC_LINK: ${{ secrets.CORE_MAC_CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.CORE_MAC_CSC_KEY_PASSWORD }}
|
2020-04-26 20:33:39 +00:00
|
|
|
Linux:
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-06-10 00:32:01 +00:00
|
|
|
- run: |
|
|
|
|
sudo snap install snapcraft --classic
|
|
|
|
echo "${{ secrets.SNAPCRAFT_LOGIN_FILE }}" > snapcraft.txt && snapcraft login --with snapcraft.txt
|
2020-05-28 17:09:51 +00:00
|
|
|
- uses: actions/checkout@v1
|
2020-07-28 05:18:26 +00:00
|
|
|
- name: Read Node version from .nvmrc
|
|
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
|
|
id: nvm
|
2020-05-28 17:09:51 +00:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-28 05:18:26 +00:00
|
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
2020-05-28 17:09:51 +00:00
|
|
|
- run: npm run bootstrap
|
2020-07-02 00:08:17 +00:00
|
|
|
- run: npm run test:pre-release
|
2020-05-28 17:09:51 +00:00
|
|
|
- run: npm run app-release
|
2020-04-26 20:33:39 +00:00
|
|
|
env:
|
2020-06-10 00:32:01 +00:00
|
|
|
BUILD_TARGETS: AppImage,deb,tar.gz,rpm,snap
|