-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (44 loc) · 1.32 KB
/
build-release.yaml
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
on: [push]
name: Build FlexConfirmMail
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- run: go version
- name: Install go-msi
run: choco install go-msi zip
# jq wixtoolset is already installed on windows-2019 image
- name: Setup PATH
run: |
echo "c:/ProgramData/chocolatey/bin" >> $Env:GITHUB_PATH
echo "c:/Program Files/go-msi" >> $Env:GITHUB_PATH
echo "c:/Program Files (x86)/WiX Toolset v3.11/bin" >> $Env:GITHUB_PATH
- name: Show PATH
run: |
echo $Env:PATH
echo $Env:GOPATH
- name: Install gox
run: go install github.com/mitchellh/gox@latest
- name: Make xpi
run: cd webextensions && make && cp *.xpi ..\
- name: Make Installer
run: make host
env:
GOPATH: C:\Users\runneradmin\go
- name: Make Native Messaging Host Installer
run: |
.\webextensions\native-messaging-host\build_msi.bat
dir
xcopy /I /Y .\webextensions\native-messaging-host\*.msi .
- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: Assets
path: |
*.xpi
*.zip
*.msi