2022-01-16 01:17:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -exuo pipefail
|
2022-01-25 02:55:46 +00:00
|
|
|
git clone -b "${version}" https://github.com/Turasa/libsignal-service-java.git
|
2022-01-16 01:17:26 +00:00
|
|
|
cd libsignal-service-java
|
|
|
|
git config user.email nobody@signald.org
|
|
|
|
git config user.name signald
|
|
|
|
git am ../libsignal-service-java.patch
|
|
|
|
python3 ../update-verification-metadata.py
|
|
|
|
git diff --color=always
|
2022-03-04 22:27:01 +00:00
|
|
|
gradle assemble || (gradle --write-verification-metadata sha256 && git diff --color=always && exit 1)
|
|
|
|
|
|
|
|
if [ "$CI_COMMIT_REF_PROTECTED" == "true" ]; then
|
|
|
|
gradle publish
|
|
|
|
fi
|