1111# permissions to none
1212permissions :
1313 contents : read
14- security-events : read # This is required to handle authentication to our artifact publishing API
15-
16- env :
17- # github runs are only unique per repository and may also be re-run; create a
18- # build id for the current run
19- BUILD_ID : ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}
20- FILESERVER_URL : https://quic-yocto-fileserver-1029608027416.us-central1.run.app
2114
2215# cancel in progress builds for this workflow triggered by the same ref
2316concurrency :
@@ -93,16 +86,11 @@ jobs:
9386 debos -t u_boot_rb1:rb1-boot.img \
9487 debos-recipes/qualcomm-linux-debian-flash.yaml
9588
96- - name : Upload artifacts to fileserver space for builds
97- id : upload_artifacts
98- env :
99- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89+ - name : Stage build artifacts for publishing
10090 run : |
10191 set -ux
102- # python3-requests is used by publish_aritfacts.py
103- apt -y install python3-requests
10492 # create a directory for the current run
105- export BUILD_DIR="/tmp/${BUILD_ID} "
93+ BUILD_DIR="./uploads "
10694 mkdir -vp "${BUILD_DIR}"
10795 # copy output files
10896 cp -av rootfs.tar.gz "${BUILD_DIR}"
@@ -118,7 +106,9 @@ jobs:
118106 disk-sdcard.img1 \
119107 disk-sdcard.img2 \
120108 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}
109+
110+ - name : Upload private artifacts
111+ uses : qualcomm-linux/upload-private-artifact-action@v1
112+ id : upload_artifacts
113+ with :
114+ path : ./uploads
0 commit comments