-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (33 loc) · 912 Bytes
/
build.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
name: Build
on:
push:
tags:
- "*"
jobs:
build:
name: Publish
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.RELEASE_SIGNING_KEY }}
passphrase: ${{ secrets.RELEASE_SIGNING_KEY_PASSPHRASE }}
- name: Build executable files
env:
GPG_FINGERPRINT: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/goreleaser/[email protected]
export PATH="./bin:$PATH"
goreleaser release --clean