From 664309f6d80002ae98307d433ef870353cfa37af Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Sun, 22 May 2022 00:03:44 +0800 Subject: [PATCH] update release --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e4e831..e91ba09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,9 +36,6 @@ jobs: - name: Setup Python environment uses: ./.github/actions/setup-python - # - name: Publish PyPI - # run: poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} || echo "Already pushed to pypi" - - run: | echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV @@ -50,7 +47,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: | + - name: Publish PyPI and Github + run: | + poetry publish --build -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} || echo "Already pushed to pypi" gh release upload --clobber ${{ env.TAG_NAME }} dist/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}