Skip to content

Commit f50fac7

Browse files
committed
ci: create GitHub releases from version tags (leanprover-community#35425)
## Summary This PR adds a GitHub Actions workflow that automatically creates GitHub releases when version tags are pushed. Currently mathlib4 only has tags (no GitHub releases), which makes it harder to programmatically discover the latest release version. This mirrors the existing functionality in batteries' `docs-release.yml`, but without building/attaching docs. See also leanprover/cslib#340 Closes leanprover-community#11292 🤖 Prepared with Claude Code
1 parent 0c5ce99 commit f50fac7

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'leanprover-community/mathlib4'
16+
steps:
17+
- name: Create GitHub Release
18+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
19+
with:
20+
prerelease: ${{ contains(github.ref, 'rc') }}
21+
make_latest: ${{ !contains(github.ref, 'rc') }}

0 commit comments

Comments
 (0)