-
Notifications
You must be signed in to change notification settings - Fork 45
64 lines (62 loc) · 1.66 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
name: Release
# only trigger on pull request closed events
on:
push:
tags:
- '*'
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
sudo apt update
sudo snap install goreleaser --classic
make dep-github-release
- name: Releasing
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make github-release
darwin:
needs: linux
runs-on: macos-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
run: |
brew install goreleaser
brew install jq
brew install wget
- name: Releasing
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make github-release-darwin
make mac-installer-release
windows:
needs: darwin
runs-on: windows-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install Requirements
shell: pwsh
run: |
Invoke-WebRequest "https://github.com/goreleaser/goreleaser/releases/download/v1.8.3/goreleaser_Windows_x86_64.zip" -OutFile goreleaser.zip
Expand-Archive goreleaser.zip
choco install make
- name: Releasing
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make github-release-windows
make windows-installer-release