Skip to content

Commit

Permalink
feat : Signed Debug Application CI/CD Added (#16)
Browse files Browse the repository at this point in the history
* feat : descrypt test

* feat : ci/cd test

* test : ci/cd test

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Update app-distribution-ci-cd.yaml

* Delete winey.properties
  • Loading branch information
dlgocks1 authored Jan 3, 2024
1 parent 1e27e5e commit 498f630
Showing 1 changed file with 11 additions and 43 deletions.
54 changes: 11 additions & 43 deletions .github/workflows/app-distribution-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,60 +21,28 @@ jobs:
with:
java-version: 17

- name: grant permission for gradlew
- name: Grant Permission for gradlew
run: chmod +x ./gradlew
shell: bash

- name: Create local.properties
run: echo "$LOCAL_PROPERTIES_CONTENTS" > local.properties

- name: Decode And Save Keystore Base64
run: |
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > app/keystore.jks
- name: Create google-services.json
run: echo "$GOOGLE_SERVICES_JSON" > app/google-services.json

- name: build release
- name: Create local.properties
run: |
echo "$LOCAL_PROPERTIES_CONTENTS" > local.properties
echo "SIGNED_STORE_FILE=keystore.jks" >> local.properties
- name: Build debug
run: ./gradlew assembleDebug

- name: upload artifact to Firebase App Distribution
- name: Upload to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: winey-team
# file: app/build/outputs/apk/release/app-release-unsigned.apk
file: app/build/outputs/apk/debug/app-debug.apk

# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Setup JDK 11
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: 11
#
# - name: Setup Android SDK
# uses: android-actions/setup-android@v2
#
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
#
# - name: Decrypt secrets.tar.gpg
# run: gpg --quiet --batch --yes --always-trust --decrypt --passphrase="$SECRET_GPG_PASSWORD" --output secrets.tar secrets.tar.gpg
# env:
# SECRET_GPG_PASSWORD: ${{ secrets.SECRET_GPG_PASSWORD }}
#
# - name: Unzip secrets.tar
# run: tar xvf secrets.tar
#
# - name: Build release universal apk
# run: ./gradlew presentation:packageReleaseUniversalApk
#
# - name: Upload apk to Firebase App Distribution
# uses: wzieba/Firebase-Distribution-Github-Action@v1
# with:
# appId: ${{ secrets.FIREBASE_APP_ID }}
# token: ${{ secrets.FIREBASE_TOKEN }}
# groups: runnerbe
# file: presentation/build/outputs/universal_apk/release/presentation-release-universal.apk
# releaseNotesFile: documents/release-note/default-note.txt

0 comments on commit 498f630

Please sign in to comment.