release.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Release
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. version:
  6. description: Version to release (optional)
  7. required: false
  8. force:
  9. description: Force a release even when there are release-blockers (optional)
  10. required: false
  11. schedule:
  12. # We want the release to be at 9-10am Pacific Time
  13. # We also want it to be 1 hour before the self-hosted release
  14. - cron: '0 17 15 * *'
  15. jobs:
  16. release:
  17. runs-on: ubuntu-latest
  18. name: 'Release a new version'
  19. steps:
  20. - name: Get auth token
  21. id: token
  22. uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
  23. with:
  24. app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
  25. private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
  26. - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  27. with:
  28. token: ${{ steps.token.outputs.token }}
  29. fetch-depth: 0
  30. - name: Prepare release
  31. uses: getsentry/action-prepare-release@d2cc2db3db92bc5b79a90c316f588f2b13626a2b # v1.5.6
  32. env:
  33. GITHUB_TOKEN: ${{ steps.token.outputs.token }}
  34. with:
  35. version: ${{ github.event.inputs.version }}
  36. force: ${{ github.event.inputs.force }}
  37. calver: true