github-release.yml 975 B

12345678910111213141516171819202122232425262728293031323334
  1. name: publish github release
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. releaseversion:
  6. description: 'Release version'
  7. required: true
  8. default: '3.8.0'
  9. jobs:
  10. publish-github-release:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v4
  14. - name: Generate changelog
  15. id: changelog
  16. uses: metcalfc/changelog-generator@v4.3.1
  17. with:
  18. myToken: ${{ secrets.GH_TOKEN }}
  19. - name: Create GitHub Release
  20. id: create_release
  21. uses: actions/create-release@v1
  22. env:
  23. GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
  24. with:
  25. tag_name: ${{ github.event.inputs.releaseversion }}
  26. release_name: ${{ github.event.inputs.releaseversion }}
  27. body: |
  28. ### Things that changed in this release
  29. ${{ steps.changelog.outputs.changelog }}
  30. draft: false
  31. prerelease: ${{ contains(github.event.inputs.releaseversion, '-') }}