2019-08-26 23:38:13 +03:00
|
|
|
name: Windows Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-08-26 23:49:18 +03:00
|
|
|
runs-on: windows-2016
|
2019-08-26 23:38:13 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Installing Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
version: 10
|
|
|
|
|
|
|
|
- name: Build
|
2019-08-26 23:55:20 +03:00
|
|
|
shell: powershell
|
2019-08-26 23:38:13 +03:00
|
|
|
run: |
|
2019-10-12 01:25:08 +03:00
|
|
|
yarn cache clean
|
2019-08-26 23:38:13 +03:00
|
|
|
yarn
|
2019-08-26 23:55:20 +03:00
|
|
|
node scripts/build-native.js
|
2019-08-26 23:38:13 +03:00
|
|
|
yarn run build
|
2019-08-26 23:55:20 +03:00
|
|
|
node scripts/prepackage-plugins.js
|
2019-09-20 12:21:39 +03:00
|
|
|
|
|
|
|
- name: Build and sign packages
|
|
|
|
run: node scripts/build-windows.js
|
2019-09-20 12:28:04 +03:00
|
|
|
if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
|
2019-08-26 23:38:13 +03:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
|
2019-08-27 00:26:56 +03:00
|
|
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
|
2019-08-26 23:38:13 +03:00
|
|
|
|
2019-09-20 12:21:39 +03:00
|
|
|
- name: Build packages without signing
|
|
|
|
run: node scripts/build-windows.js
|
2019-09-20 12:28:04 +03:00
|
|
|
if: github.repository != 'Eugeny/terminus' || github.event_name != 'push'
|
2019-09-20 12:21:39 +03:00
|
|
|
|
2019-08-26 23:38:13 +03:00
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
|
|
|
mkdir artifact-setup
|
|
|
|
mv dist/*-setup.exe artifact-setup/
|
|
|
|
mkdir artifact-portable
|
|
|
|
mv dist/*-portable.exe artifact-portable/
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload installer
|
|
|
|
with:
|
|
|
|
name: Installer
|
|
|
|
path: artifact-setup
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload portable build
|
|
|
|
with:
|
|
|
|
name: Portable build
|
|
|
|
path: artifact-portable
|