From 853e678d1f24e4688340948dfd3a210fea0ec9de Mon Sep 17 00:00:00 2001 From: illusion Date: Sun, 31 Jan 2021 23:38:53 +0530 Subject: [PATCH] encrypted google services.json --- .github/workflows/main.yml | 77 +++++++++++++++++++++---------------- .gitignore | 1 + services.tar | Bin 0 -> 2560 bytes services.tar.gpg | Bin 0 -> 578 bytes 4 files changed, 44 insertions(+), 34 deletions(-) create mode 100644 services.tar create mode 100644 services.tar.gpg diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 97856c8..78be841 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,43 +5,52 @@ name: Flutter CI on: push: branches: - - master - paths-ignore: - - 'build/**' - - '*.md' - - '.github/**' - + - master + paths-ignore: + - "build/**" + - "*.md" + - ".github/**" + # on: push # Default will running for every branch. - + jobs: build: # This job will run on ubuntu virtual machine runs-on: ubuntu-latest steps: - - # Setup Java environment in order to build the Android app. - - uses: actions/checkout@v1 - - uses: actions/setup-java@v1 - with: - java-version: '12.x' - - # Setup the flutter environment. - - uses: subosito/flutter-action@v1 - with: - channel: 'beta' # 'dev', 'alpha', default to: 'stable' - # flutter-version: '1.12.x' # you can also specify exact version of flutter - - # Get flutter dependencies. - - run: flutter pub get - - # Check for any formatting issues in the code. - - run: flutter format . - - # Build apk. - - run: flutter build apk - - # Upload generated apk to the artifacts. - - uses: actions/upload-artifact@v1 - with: - name: release-apk - path: build/app/outputs/apk/release/app-release.apk + # Setup Java environment in order to build the Android app. + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: "12.x" + + # Setup the flutter environment. + - uses: subosito/flutter-action@v1 + with: + channel: "beta" # 'dev', 'alpha', default to: 'stable' + # flutter-version: '1.12.x' # you can also specify exact version of flutter + + # Get flutter dependencies. + - run: flutter pub get + + # Check for any formatting issues in the code. + - run: flutter format . + + # Decrypt some stuff + - name: decrypt + run: | + mkdir $HOME/secrets + gpg --quiet --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" \ + --output $HOME/secrets/secrets.tar secrets.tar.gpg + tar xvf $HOME/secrets/secrets.tar + env: + SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }} + + # Build apk. + - run: flutter build apk + + # Upload generated apk to the artifacts. + - uses: actions/upload-artifact@v1 + with: + name: release-apk + path: build/app/outputs/apk/release/app-release.apk diff --git a/.gitignore b/.gitignore index 9d532b1..1478164 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ .pub-cache/ .pub/ /build/ +servies.tar # Web related lib/generated_plugin_registrant.dart diff --git a/services.tar b/services.tar new file mode 100644 index 0000000000000000000000000000000000000000..536d5822915397720b8c72193e2e6f21ca549d36 GIT binary patch literal 2560 zcmeHH&u^PB7|pqV1>(F=^TVXgEvk0daciY&nkroMyL3h}$*i>x#@9B0Gvn<82zwW*;yB0C5~UGd=6^eg^&`3LQTJ zAc9~Kz{mkUjDmRPfDfpBHbvVgBsI0Oz%zjN;?BS?CH(8gaa*a13;4Wyv^u#+s|PP{dj^kic7R6N!sF)s6RqI-GYta z%EP>Nb@H95;NprBWkZW2_Kz7`)-_LQMVhQkbiQPuPMnibQ_+>)7NYJDt{XfXIQtBEb$X$KeqR0MWL(t>h^V7HVJ74wb3aHQ9 z7&TANw0d~m^x4-_llCR2-;u7lw?z{Xlyy{*WQ-q$wI;3#A`?*|m2+7qf3?~eu+MAW z_J$1I^FJ&GQj5XWKUn#!Lv zVOD8trd=~;2E9%~gT6>;>cnoz4Qy@zt}pLfUex-6hy!`fNc^3NY8;-bM0jYuM+;{> zTh5gFkMg@Ud#ED$L|btKaQ1ut{|(s2Fs0}hfa)ZzCm7zu>3snK!zgYmD?ICJrW|gP zizkP^%(%vv3>GsGweA=DUUOY&+DH{2NXw69v+7=|1(}#+>n$dO`7Armr!5YP->y(0 zTL#BX?RWH+((>+ds+dt4SBcx&9qJNTb-Fzf&RT)yv48aN{N`)UP-#dq+#oN3f)x`R z15~77xD`#~t+?(5?*gKrNsn)Bx^77>c?I#)tvOC6C zYLBls_La5S_^aaMb2p}$#DG-bt%8bG5d#`_AE_wt z7}uZxmHO#%jnaXwzQ8pU4qx&}suu0<sqU@gH zh1c;To0VsdZGd{AuCj>aFc;0NmLvWYq`OXNsV$QJ>-9XPbeRRs9*A?dL@!gT;lN*7 QSe`mNb{`0@e8%USc4PA&Pyhe` literal 0 HcmV?d00001