release.yml 524 B

12345678910111213141516171819202122
  1. name: Release Drafter
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. types: [opened, reopened, synchronize]
  8. permissions:
  9. contents: read
  10. jobs:
  11. update_release_draft:
  12. permissions:
  13. contents: write # for release-drafter/release-drafter to create a github release
  14. pull-requests: write # for release-drafter/release-drafter to add label to PR
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: release-drafter/release-drafter@v5
  18. env:
  19. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}