From 683e02d3dd2fbbd3839281acf82b4025bfbe64f8 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 3 Oct 2022 15:41:01 +0200 Subject: [PATCH 1/2] Add GH release changelog template --- .github/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..23fbf608 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,22 @@ +changelog: + exclude: + authors: + - dependabot + - pre-commit-ci + categories: + - title: Bugs fixes 🐛 + labels: + - bug + - title: Features and enhancements 🎉 + labels: + - compliance + - enhancement + - title: Tooling 🔧 + labels: + - ci-cd + - title: Documentation 📖 + labels: + - documentation + - title: Other Changes + labels: + - "*" From efcd6e53786d8d1e242c2d9167ff5c9c52f972c9 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 3 Oct 2022 15:54:53 +0200 Subject: [PATCH 2/2] Use a maintained aGH action to publish release --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1b700a9..7c32ff15 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,12 +27,14 @@ jobs: python -m pip install --upgrade twine python -m pip install -r requirements.txt - - name: Transform git tag into GitHub Release with assets - uses: marvinpinto/action-automatic-releases@v1.2.1 + - name: Create/update release on GitHub + uses: ncipollo/release-action@v1.11.0 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: dist/* + allowUpdates: true + artifacts: "dist/*" + generateReleaseNotes: true + omitNameDuringUpdate: true + token: ${{ secrets.GITHUB_TOKEN }} - name: Build and publish env: