You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "bobbai00 (via GitHub)" <gi...@apache.org> on 2025/11/25 03:03:40 UTC

[PR] feat(ci): add Github CI for uploading release artifacts [texera]

bobbai00 opened a new pull request, #4076:
URL: https://github.com/apache/texera/pull/4076

   <!--
   Thanks for sending a pull request (PR)! Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: 
        [Contributing to Texera](https://github.com/apache/texera/blob/main/CONTRIBUTING.md)
     2. Ensure you have added or run the appropriate tests for your PR
     3. If the PR is work in progress, mark it a draft on GitHub.
     4. Please write your PR title to summarize what this PR proposes, we 
       are following Conventional Commits style for PR titles as well.
     5. Be sure to keep the PR description updated to reflect all changes.
   -->
   
   ### What changes were proposed in this PR?
   <!--
   Please clarify what changes you are proposing. The purpose of this section 
   is to outline the changes. Here are some tips for you:
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
     3. If it is a refactoring, clarify what has been changed.
     3. It would be helpful to include a before-and-after comparison using 
        screenshots or GIFs.
     4. Please consider writing useful notes for better and faster reviews.
   -->
   This PR adds a CI file for uploading the release artifacts to the [dist.apache/](https://dist.apache.org/repos/dist/dev/incubator/texera/)
   
   ### Any related issues, documentation, discussions?
   <!--
   Please use this section to link other resources if not mentioned already.
     1. If this PR fixes an issue, please include `Fixes #1234`, `Resolves #1234`
        or `Closes #1234`. If it is only related, simply mention the issue number.
     2. If there is design documentation, please add the link.
     3. If there is a discussion in the mailing list, please add the link.
   -->
   Similar to #4055 
   
   
   ### How was this PR tested?
   <!--
   If tests were added, say they were added here. Or simply mention that if the PR 
   is tested with existing test cases.  Make sure to include/update test cases that
   check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how
   you tested step by step, ideally copy and paste-able, so that other reviewers can
   test and check, and descendants can verify in the future. If tests were not added, 
   please describe why they were not added and/or why it was difficult to add. 
   -->
   
   This PR is tested manually using the Github actions on my own fork. See: https://github.com/bobbai00/texera/actions/runs/19608186790
   
   
   ### Was this PR authored or co-authored using generative AI tooling?
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
   please include the phrase: 'Generated-by: ' followed by the name of the tool 
   and its version. If no, write 'No'. 
   Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
   -->
   Yes, co-authored with Claude code
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2563361739


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   I see some projects host it on wiki. So I also created a template on wiki, here is the link: https://github.com/apache/texera/wiki/%5BVOTE%5D-Release-Apache-Texera-(incubating)-Email-Template



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2563361739


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   I see some projects host it on wiki. So I also created a template on wiki, here is the link: https://raw.githubusercontent.com/wiki/apache/texera/%5BVOTE%5D-Release-Apache-Texera-(incubating)-Email-Template.md



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2563335706


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts

Review Comment:
   Done, it is not separated as two jobs



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2562071964


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts

Review Comment:
   can you make create rc and upload rc two separate jobs (single workflow, but two jobs with dependency). This is just in case that upload fails (due to network) we could retry just the upload.
   
   In addition, I think there is a way to download artifacts from github action. it will be good to be able to download the rc manually if needed. 



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2562048043


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   oh I see it is created inside the script. can we create it as a file and host it on github?



##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   where is this template hosted?



##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS

Review Comment:
   Do we need to expose key information? I assume it is the public key, but is that necessary to expose it?



##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:

Review Comment:
   for `workflow_dispatch`, who can trigger it? PMC or committer?



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2566481303


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   Wiki is not guarded by PRs. Can we put it as a regular file so changes of it require PRs and reviews?



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2576134120


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   Added



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for creating and uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 merged PR #4076:
URL: https://github.com/apache/texera/pull/4076


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2563363626


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   The CI will fetch the template from the wiki and generate t



##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS
+          
+          The vote will be open for at least 72 hours.
+
+          Please vote accordingly:
+
+          [ ] +1 approve
+          [ ] +0 no opinion
+          [ ] -1 disapprove with the reason
+
+          Checklist for reference:
+
+          [ ] Download links are valid.
+          [ ] Checksums and signatures.
+          [ ] LICENSE/NOTICE files exist
+          [ ] No unexpected binary files
+          [ ] Can compile from source
+
+          Thanks,
+          [Your Name]
+          EOF
+
+          # Substitute variables in the template
+          sed -i "s/\${VERSION}/${VERSION}/g" vote-email.txt
+          sed -i "s/\${RC_NUM}/${RC_NUM}/g" vote-email.txt
+          sed -i "s/\${RC_DIR}/${RC_DIR}/g" vote-email.txt
+          sed -i "s/\${TAG_NAME}/${TAG_NAME}/g" vote-email.txt
+          sed -i "s/\${COMMIT_HASH}/${COMMIT_HASH}/g" vote-email.txt
+          sed -i "s/\${GPG_KEY_ID}/${GPG_KEY_ID}/g" vote-email.txt
+          sed -i "s/\${GPG_EMAIL}/${GPG_EMAIL}/g" vote-email.txt
+
+          echo "## 📧 Vote Email Template" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "Copy the content below to send to dev@texera.apache.org:" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+          cat vote-email.txt >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Vote email template generated!"
+
+      - name: Upload vote email template
+        uses: actions/upload-artifact@v4
+        with:
+          name: vote-email-template
+          path: vote-email.txt

Review Comment:
   The CI will fetch the template from the wiki and generate the email



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2563366733


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Existing Git tag (e.g., v1.1.0-incubating-rc1)'
+        required: true
+        type: string
+      rc_number:
+        description: 'Release candidate number for artifacts (e.g., 1 for RC1, 2 for RC2)'
+        required: true
+        type: string
+        default: '1'
+
+jobs:
+  create-rc:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # Full history for proper tagging
+
+      - name: Validate tag exists
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+
+          # Check if tag exists
+          if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
+            echo "Error: Tag '$TAG_NAME' does not exist"
+            echo "Available tags:"
+            git tag -l | tail -10
+            exit 1
+          fi
+
+          echo "✓ Tag validation passed: $TAG_NAME"
+
+      - name: Set up variables
+        id: vars
+        run: |
+          TAG_NAME="${{ github.event.inputs.tag }}"
+          RC_NUM="${{ github.event.inputs.rc_number }}"
+
+          # Parse version from tag (format: v1.1.0-incubating or v1.1.0-incubating-rcN)
+          # Both formats are accepted, but we use the input rc_number for artifacts
+          if [[ "$TAG_NAME" =~ ^v([0-9]+\.[0-9]+\.[0-9]+-incubating)(-rc[0-9]+)?$ ]]; then
+            VERSION="${BASH_REMATCH[1]}"
+          else
+            echo "Error: Tag must be in format vX.Y.Z-incubating or vX.Y.Z-incubating-rcN (e.g., v1.1.0-incubating-rc1)"
+            exit 1
+          fi
+
+          RC_DIR="${VERSION}-RC${RC_NUM}"
+          TARBALL_NAME="apache-texera-${VERSION}-rc${RC_NUM}-src.tar.gz"
+
+          echo "version=$VERSION" >> $GITHUB_OUTPUT
+          echo "rc_num=$RC_NUM" >> $GITHUB_OUTPUT
+          echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
+          echo "rc_dir=$RC_DIR" >> $GITHUB_OUTPUT
+          echo "tarball_name=$TARBALL_NAME" >> $GITHUB_OUTPUT
+
+          echo "Release Candidate: $TAG_NAME"
+          echo "Version: $VERSION"
+          echo "RC Number: $RC_NUM"
+          echo "Tarball: $TARBALL_NAME"
+          echo "Staging directory: dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Create source tarball
+        run: |
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+
+          # Create a temporary directory for the archive
+          TEMP_DIR=$(mktemp -d)
+          ARCHIVE_DIR="$TEMP_DIR/apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          echo "Creating source archive in $ARCHIVE_DIR"
+
+          # Export the git repository at the tag
+          git archive --format=tar --prefix="apache-texera-${VERSION}-rc${RC_NUM}-src/" "$TAG_NAME" | tar -x -C "$TEMP_DIR"
+
+          # Create tarball
+          cd "$TEMP_DIR"
+          tar -czf "$GITHUB_WORKSPACE/$TARBALL_NAME" "apache-texera-${VERSION}-rc${RC_NUM}-src"
+
+          cd "$GITHUB_WORKSPACE"
+
+          # Verify tarball was created
+          if [[ ! -f "$TARBALL_NAME" ]]; then
+            echo "Error: Tarball was not created"
+            exit 1
+          fi
+
+          # Show tarball info
+          ls -lh "$TARBALL_NAME"
+          echo "✓ Created tarball: $TARBALL_NAME"
+
+      - name: Import GPG key
+        run: |
+          echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
+
+          # List imported keys
+          gpg --list-secret-keys
+
+          echo "✓ GPG key imported successfully"
+
+      - name: Create GPG signature (.asc)
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Sign the tarball
+          echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 \
+            --armor --detach-sign --output "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          # Verify signature
+          gpg --verify "${TARBALL_NAME}.asc" "$TARBALL_NAME"
+
+          echo "✓ Created GPG signature: ${TARBALL_NAME}.asc"
+
+      - name: Create SHA512 checksum
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          # Create SHA512 checksum
+          sha512sum "$TARBALL_NAME" > "${TARBALL_NAME}.sha512"
+
+          # Display checksum
+          cat "${TARBALL_NAME}.sha512"
+
+          echo "✓ Created SHA512 checksum: ${TARBALL_NAME}.sha512"
+
+      - name: Install SVN
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y subversion
+          svn --version
+
+      - name: Checkout SVN dev directory
+        run: |
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Checkout the dev directory with depth=empty (lightweight)
+          svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          cd svn-texera
+
+          # Create RC directory if it doesn't exist
+          if ! svn info "$RC_DIR" >/dev/null 2>&1; then
+            mkdir -p "$RC_DIR"
+            svn add "$RC_DIR"
+            echo "✓ Created new RC directory: $RC_DIR"
+          else
+            svn update "$RC_DIR"
+            echo "✓ RC directory already exists: $RC_DIR"
+          fi
+
+      - name: Stage artifacts to SVN
+        run: |
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera/"$RC_DIR"
+
+          # Copy artifacts
+          cp "$GITHUB_WORKSPACE/$TARBALL_NAME" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.asc" .
+          cp "$GITHUB_WORKSPACE/${TARBALL_NAME}.sha512" .
+
+          # Add files to SVN
+          svn add "$TARBALL_NAME" "${TARBALL_NAME}.asc" "${TARBALL_NAME}.sha512" --force
+
+          # Check status
+          svn status
+
+          echo "✓ Staged artifacts to SVN"
+
+      - name: Commit artifacts to dist/dev
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          cd svn-texera
+
+          # Commit with descriptive message
+          svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts" \
+            --username "${{ secrets.SVN_USERNAME }}" \
+            --password "${{ secrets.SVN_PASSWORD }}" \
+            --no-auth-cache
+
+          echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
+
+      - name: Generate release summary
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+          TARBALL_NAME="${{ steps.vars.outputs.tarball_name }}"
+
+          echo "## Release Candidate Created Successfully! 🎉" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Release Information" >> $GITHUB_STEP_SUMMARY
+          echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
+          echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
+          echo "📦 **Staging Directory:** https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}\`" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.asc\` (GPG signature)" >> $GITHUB_STEP_SUMMARY
+          echo "- \`${TARBALL_NAME}.sha512\` (SHA512 checksum)" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
+          echo "1. Verify the artifacts at the staging directory" >> $GITHUB_STEP_SUMMARY
+          echo "2. Send [VOTE] email to dev@texera.apache.org" >> $GITHUB_STEP_SUMMARY
+          echo "3. Include links to:" >> $GITHUB_STEP_SUMMARY
+          echo "   - Tag: https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "   - Artifacts: https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "### Verification Commands" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
+          echo "# Download and verify signature" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.asc" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/release/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
+          echo "gpg --verify ${TARBALL_NAME}.asc ${TARBALL_NAME}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
+          echo "# Verify SHA512" >> $GITHUB_STEP_SUMMARY
+          echo "wget https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "sha512sum -c ${TARBALL_NAME}.sha512" >> $GITHUB_STEP_SUMMARY
+          echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+
+          echo "✓ Release candidate workflow completed successfully!"
+
+      - name: Generate vote email template
+        run: |
+          VERSION="${{ steps.vars.outputs.version }}"
+          RC_NUM="${{ steps.vars.outputs.rc_num }}"
+          TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+          RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+
+          # Get commit hash for the tag
+          COMMIT_HASH=$(git rev-parse "$TAG_NAME")
+          COMMIT_HASH_SHORT=$(git rev-parse --short "$TAG_NAME")
+
+          # Get GPG key ID from the imported key
+          GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec' | head -n1 | awk '{print $2}' | cut -d'/' -f2)
+          GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep -oP '[\w\.-]+@[\w\.-]+')
+
+          # Create email template file
+          cat > vote-email.txt <<'EOF'
+          Subject: [VOTE] Release Apache Texera (incubating) ${VERSION} RC${RC_NUM}
+
+          Hi Texera Community,
+
+          This is a call for vote to release Apache Texera (incubating) ${VERSION}.
+
+          The release candidates:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+
+          Git tag for the release:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          Hash for the release tag:
+          ${COMMIT_HASH}
+
+          Release Notes:
+          https://github.com/${{ github.repository }}/releases/tag/${TAG_NAME}
+
+          The artifacts have been signed with Key [${GPG_KEY_ID}], corresponding to [${GPG_EMAIL}]
+          which can be found in the keys file:
+          https://dist.apache.org/repos/dist/dev/incubator/texera/KEYS

Review Comment:
   Yes, we should expose it. It contains purely public key info and should be exposed



##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts

Review Comment:
   Done



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(ci): add Github CI for uploading release candidate artifacts [texera]

Posted by "bobbai00 (via GitHub)" <gi...@apache.org>.
bobbai00 commented on code in PR #4076:
URL: https://github.com/apache/texera/pull/4076#discussion_r2563391501


##########
.github/workflows/create-release-candidate.yml:
##########
@@ -0,0 +1,345 @@
+# 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: Create and upload release candidate artifacts
+
+on:
+  workflow_dispatch:

Review Comment:
   Whoever has the write access can trigger it



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org