-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 932 Bytes
/
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
name: Release
on:
pull_request:
push:
# run only against tags
tags:
- "*"
jobs:
release:
name: concurrenthash release
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
cache: true
go-version: "1.22"
- name: changelog
run: |
go install -v github.com/goreleaser/chglog/cmd/chglog@latest
chglog format --template repo > CHANGELOG.md
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --config .goreleaser.yaml --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}