-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 912 Bytes
/
release.yml
File metadata and controls
36 lines (34 loc) · 912 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
36
on:
push:
tags:
- v*
workflow_dispatch:
permissions:
# To upload archives as GitHub Releases
contents: write
# To push Docker images to GitHub
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v6
with:
go-version: 1.25.x
- uses: actions/checkout@v6
with:
# All history, required for goreleaser
fetch-depth: 0
- # For TagBody, TagSubject or TagContents fields in goreleaser's templates
run: git fetch --force --tags
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v6
with:
version: v1.9.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}