@@ -14,31 +14,26 @@ jobs:
14
14
15
15
- name : Download package
16
16
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)
19
19
20
- echo "Current commit SHA: $SHORT_SHA"
20
+ # Get current branch name and commit SHA
21
+ BRANCH_NAME="github_publishing "
22
+ SHORT_SHA="0e87247b"
21
23
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 "
24
26
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"
27
29
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
40
35
else
41
- echo "❌ No rtx_remix@*.zip file found "
36
+ echo "❌ Failed to download $FILENAME from packman "
42
37
echo "SHOULD_UPLOAD=false" >> $GITHUB_ENV
43
38
fi
44
39
47
42
uses : actions/upload-artifact@v4
48
43
with :
49
44
name : rtx-remix-package
50
- path : ${{ env.FILENAME }}
45
+ path : ${{ env.FILENAME }}
0 commit comments