Skip to content

Commit 9bb55cf

Browse files
authored
meta: Add release actions (#42)
1 parent 534b901 commit 9bb55cf

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

.craft.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
---
2-
minVersion: "0.10.0"
3-
github:
4-
owner: getsentry
5-
repo: rust-sourcemap
2+
minVersion: "0.21.0"
63
changelogPolicy: auto
74
statusProvider:
85
name: github
96
preReleaseCommand: bash scripts/bump-version
107
targets:
118
- name: crates
129
- name: github
13-
includeNames: /none/ # HACK to avoid Zeus

.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)