fix poetry PATH for windows

This commit is contained in:
Xavier Olive
2022-12-30 13:50:43 +01:00
parent d999851da5
commit 8830ef3dfe

View File

@@ -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 }}