2019-08-26 20:38:13 +00:00
|
|
|
name: Windows Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-08-26 20:49:18 +00:00
|
|
|
runs-on: windows-2016
|
2019-08-26 20:38:13 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2021-05-15 17:20:18 +00:00
|
|
|
uses: actions/checkout@v2.3.4
|
2021-05-16 11:37:48 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2019-08-26 20:38:13 +00:00
|
|
|
|
|
|
|
- name: Installing Node
|
2021-05-12 08:31:08 +00:00
|
|
|
uses: actions/setup-node@v2.1.5
|
2019-08-26 20:38:13 +00:00
|
|
|
with:
|
2021-01-02 10:03:20 +00:00
|
|
|
node-version: 14
|
2019-08-26 20:38:13 +00:00
|
|
|
|
|
|
|
- name: Build
|
2019-08-26 20:55:20 +00:00
|
|
|
shell: powershell
|
2019-08-26 20:38:13 +00:00
|
|
|
run: |
|
2019-10-14 03:17:54 +00:00
|
|
|
npm i -g yarn@1.19.1
|
2019-08-26 20:38:13 +00:00
|
|
|
yarn
|
2019-08-26 20:55:20 +00:00
|
|
|
node scripts/build-native.js
|
2019-08-26 20:38:13 +00:00
|
|
|
yarn run build
|
2019-08-26 20:55:20 +00:00
|
|
|
node scripts/prepackage-plugins.js
|
2019-09-20 09:21:39 +00:00
|
|
|
|
|
|
|
- name: Build and sign packages
|
|
|
|
run: node scripts/build-windows.js
|
2019-09-20 09:28:04 +00:00
|
|
|
if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
|
2019-08-26 20:38:13 +00:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
|
2019-08-26 21:26:56 +00:00
|
|
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
|
2019-08-26 20:38:13 +00:00
|
|
|
|
2019-09-20 09:21:39 +00:00
|
|
|
- name: Build packages without signing
|
|
|
|
run: node scripts/build-windows.js
|
2019-09-20 09:28:04 +00:00
|
|
|
if: github.repository != 'Eugeny/terminus' || github.event_name != 'push'
|
2019-09-20 09:21:39 +00:00
|
|
|
|
2021-01-04 18:21:12 +00:00
|
|
|
- name: Upload symbols
|
|
|
|
run: |
|
|
|
|
npm install @sentry/cli
|
2021-01-04 19:44:24 +00:00
|
|
|
node scripts/sentry-upload.js
|
2021-01-04 18:21:12 +00:00
|
|
|
env:
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
|
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
|
|
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
|
|
|
|
2019-08-26 20:38:13 +00:00
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
|
|
|
mkdir artifact-setup
|
|
|
|
mv dist/*-setup.exe artifact-setup/
|
|
|
|
mkdir artifact-portable
|
2020-02-13 09:42:47 +00:00
|
|
|
mv dist/*-portable.zip artifact-portable/
|
2019-08-26 20:38:13 +00:00
|
|
|
|
|
|
|
- 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
|