diff --git a/.craft.yml b/.craft.yml index d52a2de4..6a25ffd3 100644 --- a/.craft.yml +++ b/.craft.yml @@ -1,4 +1,4 @@ -minVersion: 0.23.1 +minVersion: 2.20.1 changelogPolicy: auto preReleaseCommand: pwsh -cwa '' artifactProvider: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce163aed..fcf9e46d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,39 +1,22 @@ name: Release permissions: - contents: read + contents: write on: workflow_dispatch: inputs: version: - description: Version to release - required: true + description: 'Version to release (automatically inferred form commits if not provided)' + required: false force: description: Force a release even when there are release-blockers (optional) required: false 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@v4 - with: - token: ${{ steps.token.outputs.token }} - fetch-depth: 0 - - - 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 }} \ No newline at end of file + uses: getsentry/craft/.github/workflows/release.yml@v2 + with: + version: ${{ inputs.version || 'auto' }} + force: ${{ inputs.force || 'false' }} + secrets: inherit