From fdc123d1bf74c8b14edfd543e15558c40cad9460 Mon Sep 17 00:00:00 2001 From: Shigure Kurosaki Date: Mon, 30 Dec 2024 11:31:12 +0800 Subject: [PATCH] fix: Release.tag_name already exists (#168) --- .github/workflows/cd.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8859a54..eeaea5f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -85,26 +85,8 @@ 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 - - create-release-note: - permissions: - contents: write - needs: publish - runs-on: ubuntu-latest - name: Create release note - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Create release note - run: | - if [[ "${TAG_NAME}" == *canary* ]]; then - gh release create "${TAG_NAME}" -p --generate-notes - else - gh release create "${TAG_NAME}" --generate-notes - fi - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG_NAME: ${{ github.ref_name }}