Skip to content

Commit 652f5cb

Browse files
author
paul.marcombes
committed
github action: publish on pypi removed obsolete sigstore
1 parent 8bda977 commit 652f5cb

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/publish_to_pypi.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
publish-to-pypi:
3434
name: >-
3535
Publish Python 🐍 distribution 📦 to PyPI
36-
# if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3736
needs:
3837
- build
3938
runs-on: ubuntu-latest
@@ -67,12 +66,12 @@ jobs:
6766
with:
6867
name: python-package-distributions
6968
path: dist/
70-
- name: Sign the dists with Sigstore
71-
uses: sigstore/gh-action-sigstore-python@v3.0.0
72-
with:
73-
inputs: >-
74-
./dist/*.tar.gz
75-
./dist/*.whl
69+
# - name: Sign the dists with Sigstore and upload to release
70+
# uses: sigstore/gh-action-sigstore-python@v3.0.0
71+
# with:
72+
# inputs: >-
73+
# ./dist/*.tar.gz
74+
# ./dist/*.whl
7675
# - name: Create GitHub Release
7776
# env:
7877
# GITHUB_TOKEN: ${{ github.token }}
@@ -81,13 +80,13 @@ jobs:
8180
# "$GITHUB_REF_NAME"
8281
# --repo "$GITHUB_REPOSITORY"
8382
# --notes ""
84-
# - name: Upload artifact signatures to GitHub Release
85-
# env:
86-
# GITHUB_TOKEN: ${{ github.token }}
87-
# # Upload to GitHub Release using the `gh` CLI.
88-
# # `dist/` contains the built packages, and the
89-
# # sigstore-produced signatures and certificates.
90-
# run: >-
91-
# gh release upload
92-
# "$GITHUB_REF_NAME" dist/**
93-
# --repo "$GITHUB_REPOSITORY"
83+
- name: Upload artifact signatures to GitHub Release
84+
env:
85+
GITHUB_TOKEN: ${{ github.token }}
86+
# Upload to GitHub Release using the `gh` CLI.
87+
# `dist/` contains the built packages, and the
88+
# sigstore-produced signatures and certificates.
89+
run: >-
90+
gh release upload
91+
"$GITHUB_REF_NAME" dist/**
92+
--repo "$GITHUB_REPOSITORY"

0 commit comments

Comments
 (0)