kemitix-checkstyle-ruleset/.github/deploy.sh
Paul Campbell c83e8c8e3a
Post Release 5.4.0 (#287)
* Release 5.4.0

* Update deploy.sh (#286)

Update deploy.sh

* Add missing comma in deploy/sh

* Fix typo

* Revert "Release 5.4.0"

This reverts commit 15627d4520.
2020-03-19 06:58:28 +00:00

34 lines
684 B
Bash

#!/usr/bin/env bash
# Decrypts the signing key in .github/codesigning.asc.enc
# Imports that key
# Uses .github/settings.xml and the release profile to deploy
echo "deploy.sh: Starting..."
(
cd .github
echo "Retrieving GPG Private KEY"
gpg --quiet \
--batch \
--yes \
--decrypt \
--passphrase="${GPG_PASSPHRASE}" \
--output codesigning.asc \
codesigning.asc.gpg
echo "Loading signing key"
gpg --batch \
--fast-import codesigning.asc
)
echo "Releasing..."
mvn -pl ruleset,tile \
--settings .github/settings.xml \
-Dskip-Tests=true \
-P release \
-B \
deploy
echo "deploy.sh: Done."