-
Notifications
You must be signed in to change notification settings - Fork 269
31 lines (27 loc) · 787 Bytes
/
release.yml
File metadata and controls
31 lines (27 loc) · 787 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
name: Release
on:
create:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23.6
- name: Create release on GitHub
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --config=.github/.goreleaser.yaml --release-notes=.github/RELEASE.md
env:
# Actions are injected automatically, no need to add secrets.GITHUB_TOKEN separately and manually.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}