workflow: publish opkg to portal
All checks were successful
/ build-and-publish (push) Successful in 2h15m35s

This commit is contained in:
hayzamjs 2024-03-07 14:01:46 +05:30
parent 06be23b801
commit ad3bf7d607
Signed by: hayzam
GPG key ID: 13B4C5B544B53947

View file

@ -62,6 +62,16 @@ jobs:
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make download -j$(nproc) FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make download -j$(nproc)
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make world -j$(nproc) FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make world -j$(nproc)
- name: Publish Packages to Portal
run: |
difosDir='.'
cd $difosDir
folder_name=opkg-v$TAG_REF-$ENVIRONMENT
mkdir -p $folder_name
cp -rf ./bin/packages/aarch64_cortex-a53/* $folder_name/
tar -czvf $folder_name.tar.gz $folder_name
curl -X POST -H 'Content-Type: multipart/form-data' -F "file=@$folder_name.tar.gz" http://$PORTAL_ENDPOINT/software/upload/opkg/${{ env.PORTAL_API_KEY }}
- name: Publish Release - name: Publish Release
run: | run: |
difosDir='.' difosDir='.'