From 4ae25c90bfc0a4175d1cd610cce285430ae913d1 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Fri, 13 Sep 2024 09:42:07 -0400 Subject: [PATCH] ci: add pypi-publish action to push to pypi --- .github/workflows/pypi-publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..0d70d1e --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,24 @@ +--- +on: + release: + types: [published] +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'pip' + - name: Build package distributions + run: | + pip install build + python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1