ci: π disable pypi attestations production and upload #17
Workflow file for this run
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
name: Release Python package to PyPI | |
on: | |
# TODO(@zoido): Remove pull_request when latest version is uploaded. | |
pull_request: | |
workflow_call: | |
jobs: | |
test: | |
name: Test | |
uses: ./.github/workflows/python-test.yml | |
build-n-publish: | |
name: Build and publish Python distributions packages to PyPI | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install pypa/build | |
run: | | |
pipx install build | |
- name: Build a binary wheel and a source tarball | |
run: | | |
pyproject-build | |
- name: Publish distribution π¦ to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
verify-metadata: false | |
verbose: true | |
print-hash: true | |
# Attentions are disabled temporarily. They do seem to work with the | |
# reusable wokrflow. | |
# - https://github.com/pypa/gh-action-pypi-publish/issues/166 | |
# - https://github.com/pypa/gh-action-pypi-publish/issues/283 | |
attestations: false |