We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break it in two jobs, one that builds all the python versions and the other one that just uploads once.
maybe set a job-level output say package-dir i.e. jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ['3.9', '3.10', '3.11'] outputs: package-dir: ${{ steps.build.outputs.package-dir }}
and then in the upload job:
name: Upload package to PyPI env: TWINE_USERNAME: token TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} PYPI_REPO_URL: '' run: | if [ -z "${{ env.PYPI_REPO_URL }}" ]; then twine upload --verbose ${{ needs.build.outputs.package-dir }}/* else twine upload --verbose --repository-url "${{ env.PYPI_REPO_URL }}" ${{ needs.build.outputs.package-dir }}/* fi
or something like that
The text was updated successfully, but these errors were encountered:
iglesu
No branches or pull requests
Break it in two jobs, one that builds all the python versions and the other one that just uploads once.
maybe set a job-level output say package-dir i.e.
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
outputs:
package-dir: ${{ steps.build.outputs.package-dir }}
and then in the upload job:
name: Upload package to PyPI
env:
TWINE_USERNAME: token
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
PYPI_REPO_URL: ''
run: |
if [ -z "${{ env.PYPI_REPO_URL }}" ]; then
twine upload --verbose ${{ needs.build.outputs.package-dir }}/*
else
twine upload --verbose --repository-url "${{ env.PYPI_REPO_URL }}" ${{ needs.build.outputs.package-dir }}/*
fi
or something like that
The text was updated successfully, but these errors were encountered: