Skip to content

Commit 5e47e39

Browse files
committed
chore: add minimal Craft release tooling configuration
- Add .craft.yml with minimal configuration for GitHub-only releases - Add release workflow with required version input - Uses no-op preReleaseCommand since no version tracking needed - Enables automated release management via craft
1 parent 0ee6d58 commit 5e47e39

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.craft.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
minVersion: 0.23.1
2+
changelogPolicy: auto
3+
preReleaseCommand: pwsh -c ''
4+
targets:
5+
- name: github

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version to release
8+
required: true
9+
force:
10+
description: Force a release even when there are release-blockers (optional)
11+
required: false
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
name: "Release a new version"
17+
steps:
18+
- name: Get auth token
19+
id: token
20+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
21+
with:
22+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
23+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
24+
25+
- uses: actions/checkout@v4
26+
with:
27+
token: ${{ steps.token.outputs.token }}
28+
fetch-depth: 0
29+
30+
- name: Prepare release
31+
uses: getsentry/action-prepare-release@v1
32+
env:
33+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
34+
with:
35+
version: ${{ github.event.inputs.version }}
36+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)