-
Notifications
You must be signed in to change notification settings - Fork 35
50 lines (47 loc) · 1.31 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
name: goreleaser
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Docker Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Setup minisign
run: |
curl -sL https://github.com/jedisct1/minisign/releases/download/0.11/minisign-0.11-linux.tar.gz | tar xz
cp ./minisign-linux/x86_64/minisign /usr/local/bin/
rm -r ./minisign-linux
mkdir -p $HOME/.minisign
printenv MINISIGN_KEY > $HOME/.minisign/minisign.key
env:
MINISIGN_KEY: ${{ secrets.MINISIGN_KEY }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}