Release #17
This file contains hidden or 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
| # Release workflow: proposes a new release via craft. | |
| # | |
| # Triggered via the Actions tab → "Run workflow". Runs `craft prepare` | |
| # which creates a release branch, bumps the version, and opens a publish | |
| # issue. The CI workflow then runs on that release branch to build the | |
| # Docker image and pack the npm tarball. Once the publish issue is | |
| # labeled "accepted", the Publish workflow runs `craft publish`. | |
| name: Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Version to release (semver, "auto", or "major"/"minor"/"patch")' | |
| required: false | |
| force: | |
| description: Force a release even when there are release-blockers | |
| type: boolean | |
| default: false | |
| concurrency: | |
| group: release | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| name: Release a new version | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: write | |
| issues: write | |
| steps: | |
| - uses: actions/create-github-app-token@v3 | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| fetch-depth: 0 | |
| - uses: getsentry/craft@v2 | |
| with: | |
| version: ${{ inputs.version }} | |
| force: ${{ inputs.force }} | |
| publish_repo: self | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |