-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (75 loc) · 2.4 KB
/
release.yml
File metadata and controls
83 lines (75 loc) · 2.4 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Publish Release Packages
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: Release tag to publish, for example v0.1.13
required: true
type: string
permissions:
contents: write
jobs:
goreleaser:
name: Publish packages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.tag || github.ref }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- name: Publish release packages
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
# GITHUB_TOKEN: default per-repo token. Used for the grounds-cli
# release itself (artifact upload, release-notes update). Auto-
# scoped to grounds-cli only - fine.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# HOMEBREW_TAP_PAT: cross-repo PAT used by the casks + scoops
# blocks in .goreleaser.yml to push to the homebrew-tap +
# scoop-bucket sibling repos. Configure with contents:write +
# pull-requests:write on those two repos.
HOMEBREW_TAP_PAT: ${{ secrets.HOMEBREW_TAP_PAT }}
glitchtip-release:
name: Mark GlitchTip release
needs: goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.tag || github.ref }}
- name: Resolve release version
id: version
shell: bash
run: |
if [ -n "${{ inputs.tag }}" ]; then
tag_name="${{ inputs.tag }}"
else
tag_name="${GITHUB_REF#refs/tags/}"
fi
echo "version=${tag_name#v}" >> "$GITHUB_OUTPUT"
- name: Mark release in GlitchTip
uses: getsentry/action-release@v3
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: grounds
SENTRY_PROJECT: cli
SENTRY_URL: https://glitch.grounds.gg/
with:
# GlitchTip doesn't implement Sentry's `releases deploys`
# API; skip the `environment` input that triggers it. The
# release-marker + commit-association still happen.
version: ${{ steps.version.outputs.version }}