Skip to content

Commit

Permalink
files in place for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Mar 5, 2021
1 parent 3ee40a5 commit fc9c809
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .build/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
set -euo pipefail
IFS=$'\n\t'

function cleanup {
echo "🧹 Cleanup..."
rm -f gradle.properties eliorona-sign.asc
}

trap cleanup SIGINT SIGTERM ERR EXIT

echo "🚀 Preparing to deploy..."

echo "🔑 Decrypting files..."

gpg --quiet --batch --yes --decrypt --passphrase="${GPG_SECRET}" \
--output eliorona-sign.asc .build/eliorona-sign.asc.gpg

gpg --quiet --batch --yes --decrypt --passphrase="${GPG_SECRET}" \
--output gradle.properties .build/gradle.properties.gpg

gpg --fast-import --no-tty --batch --yes eliorona-sign.asc

echo "📦 Publishing..."

./gradlew uploadArchives

echo "✅ Done!"
Binary file added .build/eliorona-sign.asc.gpg
Binary file not shown.
Binary file added .build/gradle.properties.gpg
Binary file not shown.
8 changes: 7 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ maven_group=com.oroarmor
architectury_version=1.7.117
fabric_loader_version=0.11.1
fabric_api_version=0.30.3+1.16
forge_version=36.0.42
forge_version=36.0.42

# to update gradle.properties:
# gpg --quiet --batch --yes --decrypt --passphrase="${GPG_SECRET}" --output gradle.properties .build/gradle.properties.gpg
# edit file
# gpg --cipher-algo AES256 --symmetric --batch --yes --passphrase="${GPG_SECRET}" --output .build/gradle.properties.gpg gradle.properties
# remove gpg secrets

0 comments on commit fc9c809

Please sign in to comment.