Skip to content

Commit

Permalink
check github release
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав Михайлов committed Oct 7, 2024
1 parent 3167698 commit 8069047
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,40 @@ jobs:
with:
name: python-package-distributions
path: dist/
publish-to-pypi:
needs:
- build
# publish-to-pypi:
# needs:
# - build
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/p/http_toolkit
# permissions:
# id-token: write
# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
# - name: Publish distribution 📦 to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
check-github-release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/http_toolkit
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
- name: Release Existence Action
id: check-tag
uses: insightsengineering/[email protected]
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
release-tag: ${{ github.ref_name }}
github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi
- check-github-release
runs-on: ubuntu-latest
if: needs.check-github-release.steps.check-tag.outputs == 'false'
permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
id-token: write # IMPORTANT: mandatory for sigstore
Expand Down

0 comments on commit 8069047

Please sign in to comment.