Skip to content

Commit 7cad155

Browse files
committed
revert change
1 parent a18bcaf commit 7cad155

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

.github/workflows/PermissionManager.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,14 @@ jobs:
1717
with:
1818
distribution: "adopt"
1919
java-version: 11
20-
- name: Set keystore path
21-
run: |
22-
# Decode the base64-encoded keystore file and store it in the working directory
23-
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > my-release-key.keystore
24-
# Get the full path to the keystore file
25-
WORKING_DIR=$(pwd)
26-
KEYSTORE_FILE=my-release-key.keystore
27-
KEYSTORE_PATH=$WORKING_DIR/$KEYSTORE_FILE
28-
# Set the KEYSTORE_PATH as an environment variable
29-
echo "KEYSTORE_PATH=$KEYSTORE_PATH" >> $GITHUB_ENV
30-
3120
- name: Build with Gradle
3221
run: |
3322
cd PermissionManager
3423
chmod +x ./gradlew
3524
./gradlew assembleRelease
36-
- name: Sign APK
37-
run: |
38-
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 \
39-
-keystore ${{ env.KEYSTORE_PATH }} \
40-
-storepass ${{ secrets.KEYSTORE_PASSWORD }} \
41-
-keypass ${{ secrets.KEY_PASSWORD }} \
42-
PermissionManager/app/build/outputs/apk/release/app-release-unsigned.apk \
43-
${{ secrets.KEY_ALIAS }}
44-
- name: Verify Signed APK
45-
run: |
46-
jarsigner -verify -verbose -certs \
47-
PermissionManager/app/build/outputs/apk/release/app-release-unsigned.apk
4825
- name: Upload Artifacts
4926
uses: actions/upload-artifact@v2
5027
if: ${{ !github.event.pull_request }}
5128
with:
5229
path: "PermissionManager/app/build/outputs/apk/release/app-release-unsigned.apk"
53-
name: app-release-signed.apk
30+
name: app-release-unsigned.apk

0 commit comments

Comments
 (0)