Skip to content

Commit d3415ca

Browse files
committed
Create initial craft workflow
1 parent 00e29e5 commit d3415ca

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.craft.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
github:
2+
owner: getsentry
3+
repo: prevent-cli
4+
5+
changelogPolicy: auto
6+
7+
targets:
8+
# For direct binary downloads + shasum + shasum.sig
9+
- name: github
10+
tagPrefix: v
11+
12+
# - name: pypi
13+
# - name: sentry-pypi
14+
# internalPypiRepo: getsentry/pypi

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)