Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagestedt authored May 7, 2021
1 parent 9106f3a commit 78c8ec5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,32 @@ jobs:
working-directory: ./dgca-verifier-app-android
run: |-
./gradlew --no-daemon build
- name: sign
working-directory: ./dgca-verifier-app-android
run: |-
echo "${KEY_STORE_BASE64}" | base64 --decode > ./key.jks
ZIPALIGN=${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/zipalign
APKSIGNER=${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/apksigner
${ZIPALIGN} -c -v 4 ./app/build/outputs/apk/release/app-release-unsigned.apk
${APKSIGNER} sign \
--ks ./key.jks \
--ks-pass pass:${KEY_STORE_PASSWORD} \
--ks-key-alias ${KEY_ALIAS} \
--key-pass pass:${KEY_PASSWORD} \
--out ./app/build/outputs/apk/release/app-release-signed.apk \
./app/build/outputs/apk/release/app-release-unsigned.apk
${APKSIGNER} verify ./app/build/outputs/apk/release/app-release-signed.apk
env:
BUILD_TOOLS_VERSION: 29.0.3
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_BASE64: ${{ secrets.KEY_STORE_BASE64 }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
- name: assets
working-directory: ./dgca-verifier-app-android
run: |-
gh release upload ${APP_VERSION} \
--clobber \
./app/build/outputs/apk/release/app-release-unsigned.apk#app-release-unsigned-${APP_VERSION}.apk
./app/build/outputs/apk/release/app-release-signed.apk#app-release-signed-${APP_VERSION}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 78c8ec5

Please sign in to comment.