From f3e9fac73a4880622dcd06ec85f3ee2175e9c96f Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 30 Jun 2023 17:02:51 +0200 Subject: [PATCH] Test with deploy-pypi --- .gitea/workflows/pynyaata.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pynyaata.yml b/.gitea/workflows/pynyaata.yml index 9b31e86..9f9fa8c 100644 --- a/.gitea/workflows/pynyaata.yml +++ b/.gitea/workflows/pynyaata.yml @@ -38,14 +38,11 @@ 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 - - run: pip install build - - run: python -m build - - run: ls -laR dist - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: casperdcl/deploy-pypi@v2 with: password: ${{ secrets.PYPI_API_TOKEN }} + upload: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}