-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (60 loc) · 1.77 KB
/
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
66
67
68
69
name: goreleaser
on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload windows dist artifact
uses: actions/upload-artifact@v2
with:
name: windows-dist
retention-days: 1
path: |
dist/vumm_windows_386
dist/vumm_windows_amd64_v1
msi:
needs: goreleaser
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download windows dist artifact
uses: actions/download-artifact@v2
with:
name: windows-dist
path: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set path for candle and light
shell: bash
run: echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" >> $GITHUB_PATH
- name: Build and publish msi installers
shell: bash
run: | # manually until https://github.com/goreleaser/goreleaser/issues/1295
tag="${GITHUB_REF#refs/tags/}"
VERSION=${tag#v} make msi
msi_86=dist/vumm_windows_386.msi
msi_64=dist/vumm_windows_amd64.msi
mv dist/vumm_windows_386/vumm.msi ${msi_86}
mv dist/vumm_windows_amd64_v1/vumm.msi ${msi_64}
gh release upload "${tag}" "${msi_86}" "${msi_64}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}