@@ -62,19 +62,21 @@ jobs:
6262 debhelper-compat kmod python3 rsync coreutils
6363 scripts/build-linux-deb.sh kernel-configs/systemd-boot.config
6464
65- - name : Upload results to fileserver
66- env :
67- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ - name : Stage artifacts for upload
6866 run : |
6967 set -ux
7068 # dcmd from devscripts will be used to parse .changes file
7169 apt -y install --no-install-recommends devscripts
72- # python3-requests is used by publish_aritfacts.py
73- apt -y install python3-requests
74- # copy to fileserver builds and downloads directories
70+ # stage artifacts in a directory
71+ mkdir -v artifacts
72+ cp -av `dcmd *.changes` artifacts
73+
74+ - name : Upload results to fileserver space for downloads
75+ run : |
76+ set -ux
7577 export BUILD_DIR="/fileserver-downloads/${BUILD_ID}"
7678 mkdir -vp "${BUILD_DIR}"
77- cp -av `dcmd *.changes` "${BUILD_DIR}"
79+ cp -av artifacts/* "${BUILD_DIR}"
7880
7981 # create or update linux-deb-latest symlink
8082 mkdir -vp /fileserver-downloads/qcom-deb-images
8890 )
8991 # perhaps help NFS sync
9092 sync
91- # instruct fileserver to publish this directory
92- export URL="${FILESERVER_URL}/${BUILD_ID}/"
93- .github/workflows/publish_artifacts.py
94- echo Image available at: ${URL}
93+
94+ - name : Upload private artifacts
95+ uses : qualcomm-linux/upload-private-artifact-action@v1
96+ id : upload_artifacts
97+ with :
98+ path : artifacts
9599
0 commit comments