Skip to content

Commit bbd56ed

Browse files
committed
add release setup
1 parent 70a9d41 commit bbd56ed

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.craft.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
minVersion: 0.34.1
2+
github:
3+
owner: getsentry
4+
repo: json-schema-diff
5+
changelogPolicy: auto
6+
artifactProvider:
7+
name: none
8+
targets:
9+
- name: crates
10+
- name: github

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
- uses: actions/checkout@v2
19+
with:
20+
token: ${{ secrets.GH_RELEASE_PAT }}
21+
fetch-depth: 0
22+
23+
- name: Prepare release
24+
uses: getsentry/action-prepare-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
27+
with:
28+
version: ${{ github.event.inputs.version }}
29+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)