release.yml 1011 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@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
  21. with:
  22. token: ${{ secrets.GH_RELEASE_PAT }}
  23. fetch-depth: 0
  24. - name: Prepare release
  25. uses: getsentry/action-prepare-release@b318692847c53c6bab9d22b09deef25c42a86beb # v1
  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