-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: PyPI | ||
|
||
on: | ||
push: | ||
#tags: | ||
# - v* | ||
|
||
jobs: | ||
#publish-to-pypi: | ||
# name: Publish to PyPI | ||
# #if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes | ||
# if: false | ||
# runs-on: ubuntu-latest | ||
# needs: | ||
# - build-wheels | ||
# environment: | ||
# name: pypi | ||
# url: https://pypi.org/p/hogpp # Replace <package-name> with your PyPI project name | ||
# permissions: | ||
# id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
# steps: | ||
# - name: Download artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: python-package-distributions | ||
# path: | | ||
# dist/ | ||
# wheelhouse/ | ||
|
||
# - name: Publish to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
sign: | ||
name: Sign packages | ||
needs: | ||
#- publish-to-pypi | ||
- build-sdist | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for sigstore | ||
|
||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: | | ||
dist/ | ||
wheelhouse/ | ||
- name: Sign packages with Sigstore | ||
uses: sigstore/gh-action-sigstore-python@v3.0.0 | ||
with: | ||
inputs: >- | ||
dist/*.tar.gz | ||
wheelhouse/*.whl | ||
#- name: Upload artifact signatures | ||
# env: | ||
# GITHUB_TOKEN: ${{ github.token }} | ||
# run: >- | ||
# gh release upload '${{ github.ref_name }}' | ||
# dist/** wheelhouse/** | ||
# --repo '${{ github.repository }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters