From a57491e466accfe7bda7e6240c36b2db932c89c6 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 30 Jun 2023 17:26:27 +0200 Subject: [PATCH] Fix CI --- .gitea/workflows/pynyaata.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pynyaata.yml b/.gitea/workflows/pynyaata.yml index 9f9fa8c..2505f7b 100644 --- a/.gitea/workflows/pynyaata.yml +++ b/.gitea/workflows/pynyaata.yml @@ -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') }}