with:
name: debian packages for Bionic
path: npu-engine*.deb
- - name: Upload to artifactory
- uses: ./.github/actions/upload-artifacts
- with:
- input_path: .
- input_type: deb
- art_repo: $BART_REPO/pool/bionic-nightly
- art_id: $BART_ID
- art_pw: $BART_PW
+ - name: Upload packages to Artifactory
+ shell: bash
+ run: |
+ for FILE in `find . -name "npu-engine*.deb" -type f -exec basename {} \;`; do \
+ curl \
+ --header "X-Checksum-MD5:`md5sum $FILE | awk '{ print $1 }'`" \
+ --header "X-Checksum-Sha1:`shasum -a 1 $FILE | awk '{ print $1 }'`" \
+ -u$BART_ID:$BART_PW \
+ -XPUT "$BART_REPO/pool/$DISTRO/$FILE;deb.distribution=$DISTRO;deb.component=universe;deb.architecture=amd64" \
+ -T $FILE \
+ ;\
+ done
+ env:
+ DISTRO: bionic-nightly
upload-focal:
# CODE-hosted runner
with:
name: debian packages for Focal
path: npu-engine*.deb
- - name: Upload to artifactory
- uses: ./.github/actions/upload-artifacts
- with:
- input_path: .
- input_type: deb
- art_repo: $BART_REPO/pool/focal-nightly
- art_id: $BART_ID
- art_pw: $BART_PW
+ - name: Upload packages to Artifactory
+ shell: bash
+ run: |
+ for FILE in `find . -name "npu-engine*.deb" -type f -exec basename {} \;`; do \
+ curl \
+ --header "X-Checksum-MD5:`md5sum $FILE | awk '{ print $1 }'`" \
+ --header "X-Checksum-Sha1:`shasum -a 1 $FILE | awk '{ print $1 }'`" \
+ -u$BART_ID:$BART_PW \
+ -XPUT "$BART_REPO/pool/$DISTRO/$FILE;deb.distribution=$DISTRO;deb.component=universe;deb.architecture=amd64" \
+ -T $FILE \
+ ;\
+ done
+ env:
+ DISTRO: focal-nightly