Skip to content

A self-organizing Obsidian vault that gives AI coding agents persistent memory.

ci: handle pre-existing releases in release workflow

Brenno Ferrari23df313f224a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d0010e7..c7eeaa1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -33,10 +33,14 @@ jobs:
echo "ZIP_NAME=$ZIP_NAME" >> "$GITHUB_ENV"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- - name: Create release
+ - name: Create or update release
run: |
- gh release create "$VERSION" "$ZIP_NAME" \
- --title "$VERSION" \
- --generate-notes
+ if gh release view "$VERSION" &>/dev/null; then
+ gh release upload "$VERSION" "$ZIP_NAME" --clobber
+ else
+ gh release create "$VERSION" "$ZIP_NAME" \
+ --title "$VERSION" \
+ --generate-notes
+ fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}