Skip to content

Commit eb96c93

Browse files
authored
automate release (#306)
1 parent 4f1c861 commit eb96c93

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
job_release:
15+
runs-on: ubuntu-latest
16+
name: 'Release a new version: ${{ github.event.inputs.version }}'
17+
steps:
18+
- name: Check out current commit (${{ github.sha }})
19+
uses: actions/checkout@v2
20+
with:
21+
token: ${{ secrets.GH_RELEASE_PAT }}
22+
fetch-depth: 0
23+
24+
- name: Prepare release ${{ github.event.inputs.version }}
25+
uses: getsentry/action-prepare-release@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
28+
with:
29+
version: ${{ github.event.inputs.version }}
30+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)