Fix CI
books / flake8 (push) Successful in 31s Details
books / docker (push) Successful in 28s Details
books / pypi (push) Failing after 36s Details

This commit is contained in:
Michel Roux 2023-06-30 17:26:27 +02:00
parent f3e9fac73a
commit a57491e466
1 changed files with 4 additions and 2 deletions

View File

@ -38,11 +38,13 @@ jobs:
runs-on: ubuntu-latest
container: python
needs: [lint]
if: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- uses: casperdcl/deploy-pypi@v2
- run: pip install build
- run: python setup.py sdist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
upload: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}