Skip to content

Commit

Permalink
ci(release): create GitHub release without publish
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman committed May 25, 2024
1 parent fcea335 commit 555dfba
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,11 @@ jobs:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/ibis-ml

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
name: Sign the Python distribution with Sigstore and upload them to GitHub Release
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- publish-to-pypi
- build
runs-on: ubuntu-latest

permissions:
Expand Down

0 comments on commit 555dfba

Please sign in to comment.