diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index e311d36..3e7e2dc 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -29,6 +29,11 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} + - name: Add poetry to windows path + if: "startsWith(runner.os, 'windows')" + run: | + echo "C:\Users\runneradmin\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Install and configure Poetry uses: snok/install-poetry@v1.3.3 with: @@ -55,7 +60,7 @@ jobs: poetry run twine upload dist/*.whl - name: Build and publish (source) - if: "startsWith(runner.os, 'ubuntu') && env.PYTHON_VERSION == '3.10'" + if: ${{ runner.os == 'windows-latest' && env.PYTHON_VERSION == '3.10' }} env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}