diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..dfd7337f --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,11 @@ +changelog: + categories: + - title: Features + labels: + - '*' + exclude: + labels: + - dependencies + - title: Dependencies + labels: + - dependencies \ No newline at end of file diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index e114afb1..64ec552e 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -4,7 +4,8 @@ on: branches: - main - develop - tags: '*' + tags: + - '*' jobs: build: @@ -56,11 +57,12 @@ jobs: if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }} - name: Create/update release - uses: johnwbyrd/update-release@1d5ec4791e40507e5eca3b4dbf90f0b27e7e4979 # v1.0.0 + uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8 with: token: ${{ secrets.GITHUB_TOKEN }} files: ./scigateway-${{ env.TAG_NAME }}.tar.gz - release: Release ${{ env.TAG_NAME }} - tag: ${{ env.TAG_NAME }} + name: ${{ env.TAG_NAME }} + tag_name: ${{ env.TAG_NAME }} prerelease: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }} draft: false + generate_release_notes: true