diff options
author | Dominik Holland <dominik.holland@qt.io> | 2021-06-30 17:16:51 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@googlemail.com> | 2022-01-27 13:50:04 +0100 |
commit | 70635e49fe1bb5df580a45e310f04982fd13838c (patch) | |
tree | 19ada466202e462c9f24cb2c8a8d2ffc1bf4f3e8 | |
parent | d03d991d9f9d6a3864a836eef10971b8ea3da59a (diff) | |
download | qtivi-qface-70635e49fe1bb5df580a45e310f04982fd13838c.tar.gz |
CI: Upload to TestPyPI only once per run
Also adds a build number to the uploaded packages.
-rw-r--r-- | .github/workflows/python-package.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b931d62..79d32a4 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -43,9 +43,24 @@ jobs: - name: Test with pytest run: | python -m pytest + + upload: + needs: [ build ] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: 3.7 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install setuptools wheel twine + pip install -r requirements_minimal.txt; - name: Upload to TestPyPI run: | - python3 setup.py sdist bdist_wheel + python3 setup.py sdist bdist_wheel --build-number $GITHUB_RUN_NUMBER python3 -m twine upload --skip-existing dist/* env: TWINE_USERNAME: __token__ |