Skip to content

Commit 14d449b

Browse files
committed
ci: Move to new artifact upload action
Signed-off-by: Andy Doan <[email protected]>
1 parent f6b4f77 commit 14d449b

File tree

2 files changed

+10
-122
lines changed

2 files changed

+10
-122
lines changed

.github/workflows/debos.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff 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 }}

.github/workflows/publish_artifacts.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)