Repository navigation
67 lines (61 loc) · 2.07 KB
/
Copy pathrelease.yml
File metadata and controls
67 lines (61 loc) · 2.07 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
name: Release
# Craft makes a release branch, and a release manager accepts it in
# getsentry/publish. See "Release" in README.md.
on:
workflow_dispatch:
inputs:
bump:
description: Version bump type (ignored when version is set). auto picks it from the commits; pre cuts a prerelease of that version.
required: true
type: choice
default: auto
options:
- auto
- pre
- patch
- minor
- major
version:
description: Exact version override (for example, 0.212.0)
required: false
type: string
force:
description: Force release (bypass blockers)
required: false
type: boolean
default: false
permissions:
contents: read
# Craft writes AI changelog summaries with the workflow token.
copilot-requests: write
jobs:
release:
name: Release a new version
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Use the token of Sentry Release Bot, not GITHUB_TOKEN. A push with
# GITHUB_TOKEN starts no workflows, so the release branch would get no
# CI checks and no image. GITHUB_TOKEN also cannot open the issue in
# getsentry/publish.
- name: Get auth token
id: token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
fetch-tags: true
- name: Drop floating tags
run: .github/scripts/drop-floating-tags.sh
- name: Prepare release
uses: getsentry/craft@v3
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ inputs.version || inputs.bump }}
force: ${{ inputs.force && 'true' || 'false' }}
llm_api_key: ${{ github.token }}