From 4675177f06cfcc95426a40c2cebfc3d24455139d Mon Sep 17 00:00:00 2001 From: Shigure Kurosaki Date: Mon, 30 Dec 2024 11:58:24 +0800 Subject: [PATCH] fix: Release.tag_name already exists (#169) --- .github/workflows/cd.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index eeaea5f..941e426 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -5,9 +5,22 @@ on: tags: [ 'v[0-9]+.[0-9]+.[0-9]+', 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+' ] jobs: + create-release-note: + permissions: + contents: write + runs-on: ubuntu-latest + name: Create release note + steps: + - name: Publishing release note + uses: softprops/action-gh-release@v2 + with: + prerelease: ${{ contains(github.ref_name, 'canary') }} + generate_release_notes: true + publish: permissions: contents: write + needs: create-release-note name: Publishing for ${{ matrix.job.os }} runs-on: ${{ matrix.job.os }} strategy: @@ -85,8 +98,6 @@ jobs: - name: Releasing assets uses: softprops/action-gh-release@v2 with: - prerelease: ${{ contains(github.ref_name, 'canary') }} - generate_release_notes: true files: | katharsis-*-${{ matrix.job.target }}.* katharsis*.deb