Skip to content

Commit

Permalink
fix: Release.tag_name already exists (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurosakishigure authored Dec 30, 2024
1 parent a8984b1 commit fdc123d
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit fdc123d

Please sign in to comment.