Skip to content

Commit be0e410

Browse files
committed
release: push a GitHub release as well as PyPI
1 parent 7f26f09 commit be0e410

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/buildwheel.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ jobs:
268268
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository_owner == 'flintlib'"
269269
environment:
270270
name: pypi
271-
url: https://pypi.org/p/sympy
271+
url: https://pypi.org/p/python-flint
272272
permissions:
273273
id-token: write
274274
runs-on: ubuntu-latest
@@ -289,3 +289,27 @@ jobs:
289289
# should be kept up to date. Possibly all actions and dependencies used
290290
# by the build script should be pinned...
291291
uses: pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6 # v1.10.0
292+
293+
# Make a GitHub release
294+
295+
github-publish:
296+
name: Publish GitHub release
297+
needs: pypi_release
298+
runs-on: ubuntu-latest
299+
permissions:
300+
contents: write
301+
302+
steps:
303+
- name: Download sdist
304+
uses: actions/download-artifact@v4
305+
with:
306+
name: sdist
307+
path: dist
308+
309+
- name: Create GitHub release
310+
env:
311+
GH_TOKEN: ${{ github.token }}
312+
run: >
313+
gh release create ${{ github.ref_name }} dist/*
314+
--title "python-flint ${{ github.ref_name }}"
315+
--notes "https://github.com/flintlib/python-flint?tab=readme-ov-file#changelog"

0 commit comments

Comments
 (0)