wgtmac commented on code in PR #3548: URL: https://github.com/apache/parquet-java/pull/3548#discussion_r4504911349
########## .github/workflows/release-publish.yml: ########## @@ -0,0 +1,102 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: Release - Publish After Vote + +on: + workflow_dispatch: + inputs: + version: + description: 'Release version (e.g., 1.18.0)' + required: true + type: string + rc_number: + description: 'RC number that passed the vote (leave empty to auto-detect latest)' + required: false + type: string + default: '' + staging_repo_id: + description: 'Nexus staging repository ID (e.g., orgapacheparquet-1234)' + required: true + type: string + allow_description_mismatch: + description: 'Bypass the staging-repo description check (recovery only)' + required: false + type: boolean + default: false + dry_run: + description: 'Dry run mode (no actual changes)' + required: false + type: boolean + default: true + +concurrency: + group: release-${{ inputs.version }} + cancel-in-progress: false + +jobs: + publish-release: + if: github.repository_owner == 'apache' + name: Publish Release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up JDK 11 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 + with: + distribution: temurin + java-version: '11' + + - name: Install Subversion + run: sudo apt-get update -q && sudo apt-get install -q -y subversion + + - name: Configure Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Publish Release + env: + DRY_RUN: ${{ inputs.dry_run && '1' || '0' }} + NEXUS_USERNAME: ${{ secrets.PARQUET_NEXUS_USER }} + NEXUS_PASSWORD: ${{ secrets.PARQUET_NEXUS_PASSWORD }} + SVN_USERNAME: ${{ secrets.PARQUET_SVN_DEV_USERNAME }} Review Comment: Publishing 1.18.2 RC2 failed: https://github.com/apache/parquet-java/actions/runs/42442927330 ``` svn mv .../dev/parquet/apache-parquet-1.18.2-rc2 \ .../release/parquet/apache-parquet-1.18.2 svn: E175013: Access to '/repos/dist/!svn/rvr/89131/dev/parquet/apache-parquet-1.18.2-rc2' forbidden ``` It seems that this credential only works for the dev SVN not the release one. I've raised this to ASF Infra: https://issues.apache.org/jira/browse/INFRA-28245 cc @manuzhang @RussellSpitzer @Fokko -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
