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: Upload Python Package to PyPi.org | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-package: | |
name: Build & verify package | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
attestations: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: hynek/build-and-inspect-python-package@v2 | |
with: | |
attest-build-provenance-github: 'true' | |
deploy: | |
name: Publish to pypi.org | |
environment: | |
name: pypi | |
url: https://pypi.org/project/emoji/ | |
runs-on: ubuntu-latest | |
needs: build-package | |
permissions: | |
id-token: write | |
attestations: write | |
steps: | |
- name: Download package built by build-and-inspect-python-package | |
uses: actions/download-artifact@v4 | |
with: | |
name: Packages | |
path: dist | |
- name: Upload package to PyPI | |
uses: pypa/[email protected] |