Skip to content

Commit

Permalink
Create signing keys for dev-build specific builds
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Apr 5, 2024
1 parent 70e4ea8 commit 22d5d12
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ jobs:
java-version: '11'
distribution: 'temurin'
- name : Generate override.properties
env:
DEV_SIGNING_KEY=${{ secrets.DEV_SIGNING_KEY }}
DEV_PASSWORD=${{ secrets.DEV_PASSWORD }}
run: |
rm -f override.properties
mv etc/github.gradle.properties gradle.properties
mv etc/github.signing.properties signing.properties
echo "KEY_ALIAS=mykey" >> signing.properties
echo "KEY_PASSWORD=$DEV_PASSWORD" >> signing.properties
base64 -d $DEV_SIGNING_KEY > /home/user/keystores/android-release.keystore
echo "build.built-by=GitHub Actions" >> override.properties
echo "noExe=true" >> override.properties
- name: build with Gradle
Expand All @@ -53,12 +59,17 @@ jobs:
java-version: '11'
distribution: 'temurin'
- name : Generate override.properties
env:
DEV_SIGNING_KEY=${{ secrets.DEV_SIGNING_KEY }}
DEV_PASSWORD=${{ secrets.DEV_PASSWORD }}
run: |
rm -f override.properties
echo "build.built-by=GitHub Actions" >> override.properties
echo "noExe=true" >> override.properties
mv etc/github.gradle.properties gradle.properties
mv etc/github.signing.properties signing.properties
echo "KEY_ALIAS=mykey" >> signing.properties
echo "KEY_PASSWORD=$DEV_PASSWORD" >> signing.properties
grep -v I2P_ gradle.properties > gradle.properties.update
echo "I2P_VERSION=2.4.0-1" >> gradle.properties.update
echo "I2P_ANDROID_VERSION=2.4.0-1" >> gradle.properties.update
Expand Down

0 comments on commit 22d5d12

Please sign in to comment.