This is an automated email from the ASF dual-hosted git repository.

jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 66f98a0670c Update finalize_release.yml (#29918)
66f98a0670c is described below

commit 66f98a0670c5da77e5aca3316fe87c754cbf02c4
Author: Jack McCluskey <34928439+jrmcclus...@users.noreply.github.com>
AuthorDate: Mon Jan 8 11:52:28 2024 -0500

    Update finalize_release.yml (#29918)
---
 .github/workflows/finalize_release.yml | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/finalize_release.yml 
b/.github/workflows/finalize_release.yml
index d96b59ee7cf..f3eb544139c 100644
--- a/.github/workflows/finalize_release.yml
+++ b/.github/workflows/finalize_release.yml
@@ -13,11 +13,8 @@ on:
       RC:
         description: Integer RC version for the release that we'd like to 
finalize (e.g. 3 for RC3)
         required: true
-      PYPI_USER:
-        description: PyPi username to perform the PyPi upload with
-        required: false
-      PYPI_PASSWORD:
-        description: PyPi password to perform the PyPi upload with
+      PYPI_API_TOKEN:
+        description: PyPi API token to perform the PyPi upload with
         required: false
       PUSH_DOCKER_ARTIFACTS:
         description: Whether to push SDK docker images to docker hub Apache 
organization. Should be yes unless you've already completed this step.
@@ -98,12 +95,8 @@ jobs:
         echo "::add-mask::$PYPI_PASSWORD"
     - name: Validate PyPi id/password
       run: |
-        if [ "${{ github.event.inputs.PYPI_USER }}" == "" ]
-        then
-          echo "Must provide a PyPi username to publish artifacts to PyPi"
-          exit 1
-        fi
-        if [ "${{ github.event.inputs.PYPI_PASSWORD }}" == "" ]
+        echo "::add-mask::${{ github.event.inputs.PYPI_API_TOKEN }}"
+        if [ "${{ github.event.inputs.PYPI_API_TOKEN }}" == "" ]
         then
           echo "Must provide a PyPi password to publish artifacts to PyPi"
           exit 1
@@ -125,7 +118,7 @@ jobs:
         cd "dist.apache.org/repos/dist/dev/beam/${RELEASE}/python/"
         echo "Will upload the following files to PyPI:"
         ls
-        twine upload * -u "${{ github.event.inputs.PYPI_USER }}" -p "${{ 
github.event.inputs.PYPI_PASSWORD }}"
+        twine upload * -u __token__ -p "${{ github.event.inputs.PYPI_API_TOKEN 
}}"
 
   push_git_tags:
     if: ${{github.event.inputs.TAG_RELEASE == 'yes'}}

Reply via email to