diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 67709085..d760ba83 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,6 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - name: Publish PyPI and docker on: - workflow_dispatch: - release: types: [ published ] diff --git a/.github/workflows/pypi_only.yml b/.github/workflows/pypi_only.yml new file mode 100644 index 00000000..989e5746 --- /dev/null +++ b/.github/workflows/pypi_only.yml @@ -0,0 +1,19 @@ +name: Publish PyPI manually + +on: + workflow_dispatch: + +jobs: + publish_pypi: + runs-on: ubuntu-latest + name: Push python package to PyPI + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.8 + with: + pypi_token: ${{ secrets.PYPI_API_TOKEN }} + ignore_dev_requirements: true + python_version: 3.9