From 12bbe7f26b63b8c4e5eef644b9f1da4d93e2c120 Mon Sep 17 00:00:00 2001 From: Zhong Hui Date: Wed, 3 Jan 2024 13:37:51 +0800 Subject: [PATCH 1/3] Update release.yml to release tags --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecf7bdc40e97..8f00c5a5278e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: - name: Check Branch id: check-branch run: | - if [[ ${{ github.ref }} =~ ^refs/heads/(develop)$ ]]; then + if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "match=true" >> $GITHUB_OUTPUT fi # See: https://stackoverflow.com/a/58869470/1123955 From c47d96e53d6938e48294be1f35076d73be31296d Mon Sep 17 00:00:00 2001 From: Zhong Hui Date: Thu, 4 Jan 2024 11:48:08 +0800 Subject: [PATCH 2/3] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f00c5a5278e..2c7317a1053f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,8 +42,8 @@ jobs: - name: Is A Publish Branch if: steps.check-branch.outputs.match == 'true' && steps.should-deploy.outputs.should_deploy == 'true' env: - TWINE_USERNAME: paddle-dev - TWINE_PASSWORD: ${{ secrets.paddlenlp }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.paddlenlp_pypi }} PACKAGE: ${{ inputs.package }} PADDLENLP_STABLE_VERSION: "true" run: | From ad5f77e4ee02df02d0955989b5c2b9f06b41a1f4 Mon Sep 17 00:00:00 2001 From: Zhong Hui Date: Thu, 4 Jan 2024 12:16:11 +0800 Subject: [PATCH 3/3] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c7317a1053f..10fc45d8c873 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: if: steps.check-branch.outputs.match == 'true' && steps.should-deploy.outputs.should_deploy == 'true' env: TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.paddlenlp_pypi }} + TWINE_PASSWORD: ${{ secrets.paddlenlp }} PACKAGE: ${{ inputs.package }} PADDLENLP_STABLE_VERSION: "true" run: |