@@ -14,31 +14,26 @@ jobs:
1414
1515 - name : Download package
1616 run : |
17- # Get current commit SHA (first 8 characters)
18- SHORT_SHA="97eb63e0"
17+ # Read version from VERSION.md
18+ VERSION=$(cat VERSION.md | head -n 1 | xargs)
1919
20- echo "Current commit SHA: $SHORT_SHA"
20+ # Get current branch name and commit SHA
21+ BRANCH_NAME="github_publishing "
22+ SHORT_SHA="0e87247b"
2123
22- # Download with original filename preserved
23- curl -L -O -J "https://d1oqksizpb0e3d.cloudfront.net/ rtx_remix@latest "
24+ # Construct the filename
25+ FILENAME=" rtx_remix@${VERSION}+${BRANCH_NAME}.${SHORT_SHA}.gl.windows-x86_64.release "
2426
25- # Find the downloaded file
26- DOWNLOADED_FILE=$(ls rtx_remix@*.zip 2>/dev/null | head -n 1)
27+ echo "Downloading package: $FILENAME"
28+ echo "Version: $VERSION, Branch: $BRANCH_NAME, SHA: $SHORT_SHA"
2729
28- if [[ -f "$DOWNLOADED_FILE" ]]; then
29- echo "Downloaded file: $DOWNLOADED_FILE"
30-
31- # Check if filename contains the commit SHA
32- if [[ "$DOWNLOADED_FILE" == *"$SHORT_SHA"* ]]; then
33- echo "✅ Filename contains commit SHA $SHORT_SHA - will upload"
34- echo "SHOULD_UPLOAD=true" >> $GITHUB_ENV
35- echo "FILENAME=$DOWNLOADED_FILE" >> $GITHUB_ENV
36- else
37- echo "❌ Filename does not contain commit SHA $SHORT_SHA - skipping upload"
38- echo "SHOULD_UPLOAD=false" >> $GITHUB_ENV
39- fi
30+ # Download from packman
31+ if ./tools/packman/packman pull -r rtx-remix-external "$FILENAME"; then
32+ echo "✅ Successfully downloaded $FILENAME"
33+ echo "SHOULD_UPLOAD=true" >> $GITHUB_ENV
34+ echo "FILENAME=$FILENAME" >> $GITHUB_ENV
4035 else
41- echo "❌ No rtx_remix@*.zip file found "
36+ echo "❌ Failed to download $FILENAME from packman "
4237 echo "SHOULD_UPLOAD=false" >> $GITHUB_ENV
4338 fi
4439
4742 uses : actions/upload-artifact@v4
4843 with :
4944 name : rtx-remix-package
50- path : ${{ env.FILENAME }}
45+ path : ${{ env.FILENAME }}
0 commit comments