From 735fc8f41e3584caac186f721b31e3189deccd5c Mon Sep 17 00:00:00 2001 From: cxykevin Date: Thu, 18 Apr 2024 21:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=90=E4=BA=A4=E5=88=B0Gi?= =?UTF-8?q?tea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 66f1d3c..bde5bfd 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -40,8 +40,15 @@ jobs: ls echo "Publish list:" ls dist - - name: Publish + - name: Publish Gitea + env: + TWINE_REPOSITORY_URL: "https://gitea.example.com/api/packages/${{ secrets.PKG_GITEA_USERNAME }}/pypi" + TWINE_USERNAME: ${{ secrets.PKG_GITEA_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PKG_GITEA_KEY }} + run: | + twine upload dist/* --verbose --disable-progress-ba + - name: Publish Pypi env: TWINE_PASSWORD: ${{ secrets.PYPI_KEY }} run: | - twine upload dist/* --verbose --disable-progress-bar + twine upload dist/* --verbose --disable-progress-barr