Skip to content

Commit

Permalink
release secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed May 17, 2024
1 parent bf8a48c commit 5824449
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
cat gradle.backup.properties | grep -v configuration-cache > gradle.properties
- name: Deploy to Sonatype
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
- name: Build AAB & APK
run: |
./gradlew :demo:bundleRelease :demo:assembleRelease
Expand Down
2 changes: 2 additions & 0 deletions release/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/secring.gpg
/signing.properties
Binary file added release/secring.gpg.aes
Binary file not shown.
2 changes: 2 additions & 0 deletions release/signing-cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rm -f release/*.gpg
rm -f release/*.properties
10 changes: 10 additions & 0 deletions release/signing-pack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
read -sp "Enter the encrypt key: " ENCRYPT_KEY
echo

if [[ -n "$ENCRYPT_KEY" ]]; then
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in release/secring.gpg -out release/secring.gpg.aes -k ${ENCRYPT_KEY}
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in release/signing.properties -out release/signing.properties.aes -k ${ENCRYPT_KEY}

else
echo "Encrypt key is empty"
fi
10 changes: 10 additions & 0 deletions release/signing-unpack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
read -sp "Enter the encrypt key: " ENCRYPT_KEY
echo

if [[ -n "$ENCRYPT_KEY" ]]; then
openssl enc -d -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in release/secring.gpg.aes -out release/secring.gpg -k ${ENCRYPT_KEY}
openssl enc -d -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in release/signing.properties.aes -out release/signing.properties -k ${ENCRYPT_KEY}

else
echo "Encrypt key is empty"
fi
3 changes: 3 additions & 0 deletions release/signing.properties.aes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Salted__a��$��7���+����T��o�/b
��[��y��W�?Uե���M��.�':)�"���D�RU�����3���Gm�7�1�L|�@F�/�L�� o�D�\�x뒬�DЗ=�u�<Q
�8�P�����Sn-������(H�2L�6�!a����l�ȫ�HiB^Uf�����7�ȭ���n�Zh��H�!�(LT��^�!�a;ӱ��"}5����u�Ĕ���6��2����x��A���e�U!

0 comments on commit 5824449

Please sign in to comment.