Skip to content

Commit e49d28d

Browse files
authored
Merge pull request #4 from KiraCore/feature/initial-release
feat: initial release
2 parents 5b902ca + 44c80cf commit e49d28d

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,21 @@ jobs:
175175
echo "$FORMATTED_CHANGELOG" >> $GITHUB_OUTPUT
176176
echo "EOF" >> $GITHUB_OUTPUT
177177
178-
- name: Create or Update Release
178+
- name: Create Release
179179
env:
180180
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181181
VERSION: ${{ steps.create_tag.outputs.new_tag }}
182182
run: |
183183
DEB_VERSION=$(echo $VERSION | sed 's/^v//')
184184
185+
# Always delete existing release first (handles re-runs)
186+
if gh release view $VERSION &>/dev/null; then
187+
echo "Deleting existing release $VERSION..."
188+
gh release delete $VERSION --yes --cleanup-tag=false
189+
echo "Waiting for GitHub to process deletion..."
190+
sleep 10
191+
fi
192+
185193
cat > /tmp/release_notes.md << 'NOTES'
186194
${{ steps.changelog.outputs.changelog }}
187195
@@ -221,17 +229,8 @@ jobs:
221229
```
222230
NOTES
223231
224-
# Check if release already exists
225-
if gh release view $VERSION &>/dev/null; then
226-
echo "Release $VERSION exists, updating assets with --clobber..."
227-
gh release upload $VERSION --clobber \
228-
dist/sekai-cli-* dist/*.deb dist/checksums.txt dist/*.sig
229-
# Update release notes
230-
gh release edit $VERSION --notes-file /tmp/release_notes.md
231-
else
232-
echo "Creating new release $VERSION..."
233-
gh release create $VERSION \
234-
--title "Release $VERSION" \
235-
--notes-file /tmp/release_notes.md \
236-
dist/sekai-cli-* dist/*.deb dist/checksums.txt dist/*.sig
237-
fi
232+
echo "Creating release $VERSION..."
233+
gh release create $VERSION \
234+
--title "Release $VERSION" \
235+
--notes-file /tmp/release_notes.md \
236+
dist/sekai-cli-* dist/*.deb dist/checksums.txt dist/*.sig

0 commit comments

Comments
 (0)