Autobuild bundle for Windows

pull/153/head
Piero Toffanin 2021-05-24 17:54:01 -04:00
rodzic 18a714b2de
commit bb988fb94e
1 zmienionych plików z 43 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,43 @@
name: Publish Windows Bundle
on:
push:
branches:
- master
- win32
tags:
- v*
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Setup Env
run: |
npm i
npm i -g nexe
- name: Build bundle
run: |
npm run winbundle
python configure.py dist --signtool-path $((Get-Command signtool).Source) --code-sign-cert-path $env:CODE_SIGN_CERT_PATH
- name: Upload Bundle File
uses: actions/upload-artifact@v2
with:
name: Bundle
path: dist\*.zip
- name: Upload Bundle to Release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist\*.zip
file_glob: true
tag: ${{ github.ref }}
overwrite: true