Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:

- name: Extract version from Cargo.toml
id: get_version
shell: bash
run: |
VERSION=$(grep -E '^version\s*=' Cargo.toml | head -n1 | sed 's/.*"\(.*\)".*/\1/')
echo "version=${VERSION}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -170,6 +171,7 @@ jobs:

- name: Extract version from Cargo.toml
id: get_version
shell: bash
run: |
VERSION=$(grep -E '^version\s*=' Cargo.toml | head -n1 | sed 's/.*"\(.*\)".*/\1/')
echo "version=${VERSION}" >> $GITHUB_OUTPUT
Expand All @@ -181,6 +183,14 @@ jobs:
run: |
cd ./artifacts
TAG="v${VERSION}"

# Check if release already exists and delete it (it was created without artifacts)
if gh release view "${TAG}" &>/dev/null; then
echo "Release ${TAG} already exists, deleting it to recreate with artifacts..."
gh release delete "${TAG}" --yes
fi

# Create the release with all artifacts
gh release create "${TAG}" \
--title "Release ${TAG}" \
--generate-notes \
Expand Down