-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (36 loc) · 960 Bytes
/
release.yaml
File metadata and controls
38 lines (36 loc) · 960 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
37
38
name: "release"
on:
pull_request:
push:
tags:
- "*"
jobs:
draft:
runs-on: "ubuntu-latest"
permissions:
contents: "write"
packages: "write"
id-token: "write"
steps:
- uses: "actions/checkout@v4"
- run: |
sudo apt-get install pandoc
- uses: "sigstore/cosign-installer@v3"
- uses: "anchore/sbom-action/download-syft@v0"
- uses: "docker/setup-qemu-action@v3"
- uses: "docker/setup-buildx-action@v3"
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: "actions/setup-go@v5"
with:
go-version: "1.26"
- uses: "goreleaser/goreleaser-action@v6"
with:
distribution: "goreleaser"
version: "~> v2"
args: "release --clean"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}