fix poetry PATH for windows
This commit is contained in:
7
.github/workflows/pypi-publish.yml
vendored
7
.github/workflows/pypi-publish.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user