From 28b388507937d844f54bf7d668d0114d0880f5f4 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Thu, 15 Feb 2024 16:47:29 -0500 Subject: [PATCH] build: pypi-publish.yml (#320) --- .github/workflows/pypi-publish.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 5f7b8bf..325ea8c 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,11 +1,11 @@ name: Publish package to PyPI on: - release: - types: [published] + push: + tags: + - '*' jobs: - push: runs-on: ubuntu-20.04 @@ -13,20 +13,17 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: setup python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: 3.8 - name: Install pip - run: pip install pip - - - name: Install Dependencies - run: pip install setuptools wheel + run: pip install -r requirements/pip.txt - name: Build package run: python setup.py sdist bdist_wheel - - name: Publish to PyPi + - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__