disable signing
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s
This commit is contained in:
parent
a5b7c0220b
commit
69505e8371
86
.github/workflows/python_publish.yml
vendored
86
.github/workflows/python_publish.yml
vendored
|
@ -59,52 +59,52 @@ jobs:
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
github-release:
|
# github-release:
|
||||||
name: >-
|
# name: >-
|
||||||
Sign the Python 🐍 distribution 📦 with Sigstore
|
# Sign the Python 🐍 distribution 📦 with Sigstore
|
||||||
and upload them to GitHub Release
|
# and upload them to GitHub Release
|
||||||
needs:
|
# needs:
|
||||||
- publish-to-pypi
|
# - publish-to-pypi
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
# permissions:
|
||||||
contents: write # IMPORTANT: mandatory for making GitHub Releases
|
# contents: write # IMPORTANT: mandatory for making GitHub Releases
|
||||||
id-token: write # IMPORTANT: mandatory for sigstore
|
# id-token: write # IMPORTANT: mandatory for sigstore
|
||||||
|
|
||||||
env:
|
# env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd
|
# RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd
|
||||||
AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824
|
# AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Download all the dists
|
# - name: Download all the dists
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: python-package-distributions
|
# name: python-package-distributions
|
||||||
path: dist/
|
# path: dist/
|
||||||
- name: Sign the dists with Sigstore
|
# - name: Sign the dists with Sigstore
|
||||||
uses: sigstore/gh-action-sigstore-python@v2.1.1
|
# uses: sigstore/gh-action-sigstore-python@v2.1.1
|
||||||
with:
|
# with:
|
||||||
inputs: >-
|
# inputs: >-
|
||||||
./dist/*.tar.gz
|
# ./dist/*.tar.gz
|
||||||
./dist/*.whl
|
# ./dist/*.whl
|
||||||
- name: Create GitHub Release
|
# - name: Create GitHub Release
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
run: >-
|
# run: >-
|
||||||
gh release create
|
# gh release create
|
||||||
'${{ github.ref_name }}'
|
# '${{ github.ref_name }}'
|
||||||
--repo '${{ github.repository }}'
|
# --repo '${{ github.repository }}'
|
||||||
--notes ""
|
# --notes ""
|
||||||
- name: Upload artifact signatures to GitHub Release
|
# - name: Upload artifact signatures to GitHub Release
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
# GITHUB_TOKEN: ${{ github.token }}
|
||||||
# Upload to GitHub Release using the `gh` CLI.
|
# # Upload to GitHub Release using the `gh` CLI.
|
||||||
# `dist/` contains the built packages, and the
|
# # `dist/` contains the built packages, and the
|
||||||
# sigstore-produced signatures and certificates.
|
# # sigstore-produced signatures and certificates.
|
||||||
run: >-
|
# run: >-
|
||||||
gh release upload
|
# gh release upload
|
||||||
'${{ github.ref_name }}' dist/**
|
# '${{ github.ref_name }}' dist/**
|
||||||
--repo '${{ github.repository }}'
|
# --repo '${{ github.repository }}'
|
||||||
|
|
||||||
publish-to-testpypi:
|
publish-to-testpypi:
|
||||||
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
name: Publish Python 🐍 distribution 📦 to TestPyPI
|
||||||
|
|
Loading…
Reference in New Issue
Block a user