release.yml 1013 B

12345678910111213141516171819202122232425262728293031
  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. - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
  21. with:
  22. token: ${{ secrets.GH_RELEASE_PAT }}
  23. fetch-depth: 0
  24. - name: Prepare release
  25. uses: getsentry/action-prepare-release@d2cc2db3db92bc5b79a90c316f588f2b13626a2b # v1.5.6
  26. env:
  27. GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
  28. with:
  29. version: ${{ github.event.inputs.version }}
  30. force: ${{ github.event.inputs.force }}
  31. calver: true