Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,23 @@ jobs:
cat changelog_snippet.md >> release_notes.md
fi

- name: Delete pre-existing release if any
run: |
TAG="${{ steps.version.outputs.version }}"
# Use 'if' to inhibit errexit (bash -e) so the non-zero exit
# from 'gh release view' doesn't terminate the step early.
if PROBE_STDERR=$(gh release view "$TAG" 2>&1 >/dev/null); then
echo "Release $TAG exists, deleting..."
gh release delete "$TAG" --yes
elif [ "$PROBE_STDERR" = "release not found" ]; then
echo "No existing release for $TAG, skipping."
else
echo "::error::gh release view failed: $PROBE_STDERR"
exit 1
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down
68 changes: 24 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ members = [
exclude = ["cargo-psp"]

[workspace.package]
version = "0.4.0"
version = "1.0.0"
edition = "2024"
license = "MIT"
repository = "https://github.com/AndrewAltimit/rust-psp"
Expand Down
Loading