Skip to content

Commit

Permalink
Set a build badge in the readme and set the google services json file…
Browse files Browse the repository at this point in the history
… in more of the build steps
  • Loading branch information
christianrowlands committed Oct 26, 2023
1 parent ca0a196 commit baa1687
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/android-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ jobs:

steps:
- name: Checkout the code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'

- name: Save google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: echo "$GOOGLE_SERVICES" > networksurvey/google-services.json

- name: Cache dependencies
uses: actions/cache@v2
with:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout the code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
Expand All @@ -33,6 +33,11 @@ jobs:
java-version: 11
distribution: 'adopt'

- name: Save google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: echo "$GOOGLE_SERVICES" > networksurvey/google-services.json

- name: Build Regular APK
run: ./gradlew assembleRegularDebug --stacktrace

Expand Down Expand Up @@ -66,14 +71,19 @@ jobs:

steps:
- name: Checkout the code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'

- name: Save google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: echo "$GOOGLE_SERVICES" > networksurvey/google-services.json

- name: Cache dependencies
uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Network Survey Android App

[![Build Status](https://travis-ci.com/christianrowlands/android-network-survey.svg?branch=develop)](https://travis-ci.com/github/christianrowlands/android-network-survey)
![Build Status](https://github.com/christianrowlands/android-network-survey/actions/workflows/android.yml/badge.svg)
[![License](https://img.shields.io/badge/license-Apache%202-green.svg?style=flat)](https://github.com/christianrowlands/android-network-survey/blob/develop/LICENSE)

<p align="center">
Expand Down

0 comments on commit baa1687

Please sign in to comment.