Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/ppa publish #4402

Merged
merged 2 commits into from
Aug 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions scripts/deployment/publish-ppa.sh
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> $( 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'
-- Nethermind <[email protected]> $( 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