Skip to content

Commit

Permalink
release: push a GitHub release as well as PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Sep 1, 2024
1 parent 7f26f09 commit be0e410
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/buildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository_owner == 'flintlib'"
environment:
name: pypi
url: https://pypi.org/p/sympy
url: https://pypi.org/p/python-flint
permissions:
id-token: write
runs-on: ubuntu-latest
Expand All @@ -289,3 +289,27 @@ jobs:
# should be kept up to date. Possibly all actions and dependencies used
# by the build script should be pinned...
uses: pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6 # v1.10.0

# Make a GitHub release

github-publish:
name: Publish GitHub release
needs: pypi_release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download sdist
uses: actions/download-artifact@v4
with:
name: sdist
path: dist

- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: >
gh release create ${{ github.ref_name }} dist/*
--title "python-flint ${{ github.ref_name }}"
--notes "https://github.com/flintlib/python-flint?tab=readme-ov-file#changelog"

0 comments on commit be0e410

Please sign in to comment.