Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tag release messages #2249

Merged
merged 1 commit into from
Mar 11, 2025
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
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,28 @@ jobs:
run: |
(echo "SUBJECT=\"FLINT nightly release\"";
echo "PRERELEASE=\"--prerelease --draft\"") >> $GITHUB_ENV
gh release delete nightly --yes || true
git push origin :nightly || true
# gh release delete nightly --yes || true
# git push origin :nightly || true


- if: env.TAG_NAME != 'nightly'
run: |
(echo "SUBJECT=\"FLINT v${FLINT_VERSION}\"";
echo "PRERELEASE=") >> $GITHUB_ENV
gh release delete stable --yes || true
git push origin :stable || true
# gh release delete stable --yes || true
# git push origin :stable || true

- name: Generate release message
run: |
# Print tag message
mkdir tmp
cd tmp
git clone --bare --filter=blob:none --depth=1 --branch v${FLINT_VERSION} [email protected]:flintlib/flint.git
mv flint.git .git
git for-each-ref refs/tags/v${FLINT_VERSION} --format='%(contents)' > $RUNNER_TEMP/notes.md
cd ..
rm -rf tmp/

# Generate checksums
printf '## SHA256 Checksums\n```\n' >> $RUNNER_TEMP/notes.md
for ext in tar.gz tar.xz zip; do
Expand Down
Loading