diff --git a/.craft.yml b/.craft.yml index dcb07ab1..8203a82b 100644 --- a/.craft.yml +++ b/.craft.yml @@ -1,8 +1,5 @@ --- -minVersion: "0.10.0" -github: - owner: getsentry - repo: rust-sourcemap +minVersion: "0.21.0" changelogPolicy: auto statusProvider: name: github @@ -10,4 +7,3 @@ preReleaseCommand: bash scripts/bump-version targets: - name: crates - name: github - includeNames: /none/ # HACK to avoid Zeus diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..de2a8c9b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +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 + +jobs: + release: + runs-on: ubuntu-latest + name: "Release a new version" + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.GH_RELEASE_PAT }} + fetch-depth: 0 + + - name: Prepare release + uses: getsentry/action-prepare-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} + with: + version: ${{ github.event.inputs.version }} + force: ${{ github.event.inputs.force }}