diff --git a/scripts/deployment/publish-ppa.sh b/scripts/deployment/publish-ppa.sh index 221a9050479..daf99263826 100644 --- a/scripts/deployment/publish-ppa.sh +++ b/scripts/deployment/publish-ppa.sh @@ -1,22 +1,27 @@ #!/bin/bash #exit when any command fails +RELEASES="bionic focal impish jammy" set -e echo $VERSION > ver FIXED_VERSION=$(awk -F. '{ print $1"."$2$3$4"0"}' ver) -echo "nethermind ($FIXED_VERSION) bionic focal impish jammy; urgency=high - * Nethermind client ($FIXED_VERSION release) - - -- Nethermind $( date -R )" > $RELEASE_DIRECTORY/nethermind/build/debian/changelog +cd $RELEASE_DIRECTORY/nethermind/ +for release in ${RELEASES}; do -cd nethermind/build/ -debuild -S -uc -us -cd .. + echo "nethermind ($FIXED_VERSION) $release; urgency=high -echo 'Signing package' -debsign -p 'gpg --batch --yes --no-tty --pinentry-mode loopback --passphrase-file /home/runner/work/nethermind/PASSPHRASE' -S -k$PPA_GPG_KEYID nethermind_${FIXED_VERSION}_source.changes + * Nethermind client ($FIXED_VERSION release) -echo 'Uploading' -dput -f ppa:nethermindeth/nethermind nethermind_${FIXED_VERSION}_source.changes -echo 'Publishing to PPA complete' \ No newline at end of file + -- Nethermind $( date -R )" > $RELEASE_DIRECTORY/nethermind/build/debian/changelog + cd build/ + debuild -S -uc -us + cd .. + echo 'Signing package' + debsign -p 'gpg --batch --yes --no-tty --pinentry-mode loopback --passphrase-file /home/runner/work/nethermind/PASSPHRASE' -S -k$PPA_GPG_KEYID nethermind_${FIXED_VERSION}_source.changes + echo 'Uploading' + dput -f ppa:nethermindeth/nethermind nethermind_${FIXED_VERSION}_source.changes + echo "Publishing $release release to PPA complete" + echo 'Cleanup' + rm nethermind_$FIXED_VERSION* +done \ No newline at end of file