fix publish pipeline
This commit is contained in:
parent
30df8f520d
commit
decc85f4ca
|
@ -82,16 +82,14 @@ jobs:
|
|||
common/travis/set_mirror.sh &&
|
||||
common/travis/prepare.sh &&
|
||||
common/travis/fetch-xtools.sh
|
||||
mkdir -p /hostdir/binpkgs
|
||||
curl -so "/hostdir/binpkgs/${{ matrix.config.arch }}-repodata" "https://xbps.snaile.de/${{ matrix.config.arch }}-repodata" || true
|
||||
mkdir -p "${HOME}/hostdir/binpkgs"
|
||||
curl -so "${HOME}/hostdir/binpkgs/${{ matrix.config.arch }}-repodata" "https://xbps.snaile.de/${{ matrix.config.arch }}-repodata" || true
|
||||
|
||||
- name: Get changed packages
|
||||
run: |
|
||||
tip="$(git rev-list -1 --parents HEAD)"
|
||||
case "$tip" in
|
||||
# This is a merge commit, pick last parent
|
||||
*" "*" "*) tip="${tip##* }" ;;
|
||||
# This is a non-merge commit, pick itself
|
||||
*) tip="${tip%% *}" ;;
|
||||
esac
|
||||
base="$(git rev-list -1 HEAD^)"
|
||||
|
@ -115,13 +113,14 @@ jobs:
|
|||
cd /
|
||||
"$here/common/travis/build.sh" "$BOOTSTRAP" "$ARCH" 0
|
||||
)
|
||||
ls -lAH "${HOME}/hostdir/binpkgs"
|
||||
|
||||
- name: Sign and upload packages
|
||||
run: |
|
||||
echo '${{ secrets.XBPS_SIGNING_KEY }}' >"/tmp/privkey.pem"
|
||||
|
||||
for package in $(echo "$HOME"/hostdir/binpkgs/*.${{ matrix.config.arch }}.xbps | cut -d ' ' -f 1); do
|
||||
XBPS_PASSPHRASE=${{ secrets.XBPS_SIGNING_PASSPHRASE }} xbps-rindex --privkey "/tmp/privkey.pem" --sign-pkg --signedby "${{ env.MAINTAINER }}" "$package"
|
||||
XBPS_ARCH="${{ matrix.config.arch }}" XBPS_PASSPHRASE="${{ secrets.XBPS_SIGNING_PASSPHRASE }}" xbps-rindex --privkey "/tmp/privkey.pem" --sign-pkg --signedby "${{ env.MAINTAINER }}" "$package"
|
||||
for item in "$package" "${package}.sig2"; do
|
||||
curl -X PUT --digest -u "${{ vars.XBPS_WEBDAV_USER }}:${{ secrets.XBPS_WEBDAV_KEY }}" -T "${item}" "https://xbps.snaile.de/$(basename $item)"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue