-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (58 loc) · 2.38 KB
/
on-release.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
65
name: On release
on:
release:
types: [created]
jobs:
upload-release-asset:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- name: Build standalone apps
run: npm run pkg
- name: Install WiX Toolset
run: |
choco install wixtoolset
- name: Build windows installer
run: |
& ${env:WIX}bin\candle.exe -o dist\ build-win-installer.wxs
& ${env:WIX}bin\light.exe -o dist\heta-compiler-installer.msi dist\build-win-installer.wixobj
- name: Upload Release Asset Win
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This is part of the GitHub Actions context
asset_path: dist/heta-compiler-installer.msi
asset_name: heta-compiler-installer.msi
asset_content_type: application/octet-stream
- name: Upload Release Asset Win
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This is part of the GitHub Actions context
asset_path: dist/heta-compiler-win.exe
asset_name: heta-compiler-win.exe
asset_content_type: application/octet-stream
- name: Upload Release Asset Linux
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This is part of the GitHub Actions context
asset_path: dist/heta-compiler-linux
asset_name: heta-compiler-linux
asset_content_type: application/octet-stream
- name: Upload Release Asset Macos
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }} # This is part of the GitHub Actions context
asset_path: dist/heta-compiler-macos
asset_name: heta-compiler-macos
asset_content_type: application/octet-stream