Skip to content

Commit

Permalink
encrypted google services.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Illusion47586 committed Jan 31, 2021
1 parent 0c77821 commit 853e678
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 34 deletions.
77 changes: 43 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
.pub-cache/
.pub/
/build/
servies.tar

# Web related
lib/generated_plugin_registrant.dart
Expand Down
Binary file added services.tar
Binary file not shown.
Binary file added services.tar.gpg
Binary file not shown.

0 comments on commit 853e678

Please sign in to comment.