ScuttleBot

scuttlebot / .github / workflows / release.yml
Blame History Raw 46 lines
1
name: Release
2
3
on:
4
push:
5
tags:
6
- "v*"
7
8
permissions:
9
contents: write
10
packages: write
11
12
jobs:
13
release:
14
runs-on: ubuntu-latest
15
steps:
16
- uses: actions/checkout@v4
17
with:
18
fetch-depth: 0 # full history for changelog generation
19
20
- uses: actions/setup-go@v5
21
with:
22
go-version-file: go.mod
23
cache: true
24
25
- name: Set up QEMU (multi-arch Docker builds)
26
uses: docker/setup-qemu-action@v3
27
28
- name: Set up Docker Buildx
29
uses: docker/setup-buildx-action@v3
30
31
- name: Log in to GHCR
32
uses: docker/login-action@v3
33
with:
34
registry: ghcr.io
35
username: ${{ github.actor }}
36
password: ${{ secrets.GITHUB_TOKEN }}
37
38
- name: Run GoReleaser
39
uses: goreleaser/goreleaser-action@v6
40
with:
41
distribution: goreleaser
42
version: "~> v2"
43
args: release --clean
44
env:
45
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button