Release #154
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Version to release | |
required: true | |
force: | |
description: | |
Force a release even when there are release-blockers (optional) | |
required: false | |
merge_target: | |
description: | |
Target branch to merge into. Uses the default branch as a fallback | |
(optional) | |
required: false | |
default: master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: 'Release a new version' | |
steps: | |
- name: Get auth token | |
id: token | |
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | |
with: | |
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | |
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ steps.token.outputs.token }} | |
fetch-depth: 0 | |
- name: Install Dependencies | |
run: yarn install | |
- name: Prepare release | |
uses: getsentry/action-prepare-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ steps.token.outputs.token }} | |
with: | |
version: ${{ github.event.inputs.version }} | |
force: ${{ github.event.inputs.force }} | |
merge_target: ${{ github.event.inputs.merge_target }} | |
craft_config_from_merge_target: true |