-
Notifications
You must be signed in to change notification settings - Fork 10
64 lines (54 loc) · 2.2 KB
/
build-and-release-win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release for Windows
on: [ push, pull_request ]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
release_linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: yarn install
- run: yarn add -D [email protected]
- run: yarn test
- run: yarn lint
- run: yarn build-all
- run: yarn cli --help
- run: yarn dev:cli --help
- name: Build native executable
if: ${{ startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags/v') }}
run: yarn install --network-timeout 1000000 && yarn package-win
env:
GH_TOKEN: ${{ secrets.github_token }}
# - name: Setup dotnet env for signing
# if: ${{ startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags/v') }}
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: ${{ env.DOTNET_VERSION }}
#
# - name: Get files to sign
# if: ${{ startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags/v') }}
# run: (Get-ChildItem -File bin/win | where {$_.extension -in ".exe"}).FullName >> bin/win/files-to-sign.txt
#
# - name: Sign with azure service
# if: ${{ startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags/v') }}
# uses: fluffy-bunny/[email protected]
# with:
# azure_sign_tool_credentials: ${{ secrets.AZURE_SIGN_TOOL_CREDENTIALS_MANAGED_IDENTITY }}
# azure_sign_tool_assembly: tools/AzureSignTool-DEV/netcoreapp2.1/any/AzureSignTool.dll
# files_to_sign: bin/win/files-to-sign.txt
- name: Release assets
if: ${{ startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags/v') }}
uses: ncipollo/release-action@v1
with:
draft: true
allowUpdates: true
artifacts: "bin/win/*.exe"
token: ${{ secrets.GITHUB_TOKEN }}