Skip to content

Upload Python Package to PyPi.org #4

Upload Python Package to PyPi.org

Upload Python Package to PyPi.org #4

Workflow file for this run

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/p/emoji-country-flag
runs-on: ubuntu-latest
needs: build-package
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]