From 8b94b1ef2cdf0e33481413785f1d6b540d535250 Mon Sep 17 00:00:00 2001 From: Markus Bilz Date: Sat, 6 Jan 2024 12:41:48 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20Add=20'release.yaml'=20+=20fix=20gh=20rel?= =?UTF-8?q?ease=F0=9F=90=99=20(#63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: Add 'release.yaml' + fix gh release * ci: rename to 'publish.yaml' for trusted publishing --- .github/release.yml | 19 +++++++++++++++++++ .github/workflows/publish.yaml | 5 ++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..84410c3 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,19 @@ +# .github/release.yml + +changelog: + exclude: + labels: + - ignore-for-release + authors: + - octocat + categories: + - title: Code + labels: + - python + - enhancement + - title: Documentation + labels: + - documentation + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 294cc73..11c3670 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -80,7 +80,8 @@ jobs: gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' - --notes "" + --title 'v${{ github.ref_name }}' + --generate-notes - name: Upload artifact signatures to GitHub Release env: GITHUB_TOKEN: ${{ github.token }} @@ -90,8 +91,6 @@ jobs: run: >- gh release upload '${{ github.ref_name }}' dist/** - --title 'v${{ github.ref_name }}' - --generate-notes --repo '${{ github.repository }}' publish-to-testpypi: