From a5a2c804c488e6872937a23d383e715d14aefaa4 Mon Sep 17 00:00:00 2001 From: v <39996356+vhewes@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:06:43 -0500 Subject: [PATCH] github action for pypi release --- .github/workflows/pypi.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..ae90479 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,31 @@ +name: pypi + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}