File tree Expand file tree Collapse file tree 2 files changed +10
-122
lines changed Expand file tree Collapse file tree 2 files changed +10
-122
lines changed Original file line number Diff line number Diff line change @@ -93,16 +93,11 @@ jobs:
9393 debos -t u_boot_rb1:rb1-boot.img \
9494 debos-recipes/qualcomm-linux-debian-flash.yaml
9595
96- - name : Upload artifacts to fileserver space for builds
97- id : upload_artifacts
98- env :
99- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96+ - name : Stage build artifacts for publishing
10097 run : |
10198 set -ux
102- # python3-requests is used by publish_aritfacts.py
103- apt -y install python3-requests
10499 # create a directory for the current run
105- export BUILD_DIR="/tmp/${BUILD_ID}"
100+ BUILD_DIR="/tmp/${BUILD_ID}"
106101 mkdir -vp "${BUILD_DIR}"
107102 # copy output files
108103 cp -av rootfs.tar.gz "${BUILD_DIR}"
@@ -118,7 +113,11 @@ jobs:
118113 disk-sdcard.img1 \
119114 disk-sdcard.img2 \
120115 flash_rb1*
121- # instruct fileserver to publish this directory
122- export URL="${FILESERVER_URL}/${BUILD_ID}/"
123- .github/workflows/publish_artifacts.py
124- echo Image available at: ${URL}
116+
117+ - name : Upload artifacts
118+ uses : qualcomm-linux/upload-private-artifact-action@v1
119+ id : upload_artifacts
120+ with :
121+ path : /tmp/${BUILD_ID}
122+ build_id : " ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}"
123+ github_token : " ${{ secrets.GITHUB_TOKEN }}"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments