-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (29 loc) · 829 Bytes
/
release.yml
File metadata and controls
35 lines (29 loc) · 829 Bytes
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
name: Release
on:
push:
tags:
- "*"
jobs:
binaries:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.API_GITHUB_TOKEN }}
- name: Fetch Go version
run: |
GO_VERSION=$(perl -ne 'print "$1\n" if /FROM golang:([0-9.]+)/' Dockerfile | head -n1)
[ -n "$GO_VERSION" ] || exit 1
echo "go_version=$GO_VERSION" >> $GITHUB_ENV
- name: Setup Go environment
uses: actions/setup-go@v6.1.0
with:
go-version: "${{ env.go_version }}"
- name: Binaries Release
uses: goreleaser/goreleaser-action@v6.4.0
with:
version: ~> 2.7.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}