release.yml 837 B

12345678910111213141516171819202122232425262728293031323334
  1. name: release
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. release:
  8. if: startsWith(github.ref, 'refs/tags/')
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. with:
  13. fetch-depth: 0
  14. - name: Prep Config
  15. run: .github/prep-changelog-config.sh
  16. - name: Build Changelog
  17. id: github_release
  18. uses: mikepenz/release-changelog-builder-action@v2
  19. with:
  20. configuration: ".github/changelog-config.json"
  21. env:
  22. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  23. - name: Create Release
  24. uses: actions/create-release@v1
  25. with:
  26. tag_name: ${{ github.ref }}
  27. release_name: ${{ github.ref }}
  28. body: ${{steps.github_release.outputs.changelog}}
  29. env:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}