Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwu1105 committed Oct 12, 2020
2 parents a1f381d + acaf462 commit cbbcf2d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 45 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: build

on: [push, pull_request]

jobs:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/production-release.yml

This file was deleted.

57 changes: 56 additions & 1 deletion .github/workflows/qa-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,59 @@ jobs:
serviceAccountJson: service_account.json
packageName: io.numbersprotocol.starlingcapture
releaseFile: ./app/build/outputs/bundle/internalRelease/app-internal-release.aab
track: alpha
track: alpha

google-drive-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Build APKs
env:
NUMBERS_STORAGE_BASE_URL: ${{ secrets.NUMBERS_STORAGE_BASE_URL }}
run: |
./gradlew assembleMasterDebug
./gradlew assembleMasterQa
./gradlew assembleInternalDebug
./gradlew assembleInternalQa
- name: Upload master-debug outputs to Google Drive
uses: satackey/action-google-drive@v1
with:
skicka-tokencache-json: ${{ secrets.SKICKA_TOKENCACHE_JSON }}
google-client-id: ${{ secrets.SKICKA_GOOGLE_CLIENT_ID }}
google-client-secret: ${{ secrets.SKICKA_GOOGLE_CLIENT_SECRET }}
upload-from: ./app/build/outputs/apk/master/debug/
upload-to: /starling-capture/apk/master/debug/

- name: Upload master-qa outputs to Google Drive
uses: satackey/action-google-drive@v1
with:
skicka-tokencache-json: ${{ secrets.SKICKA_TOKENCACHE_JSON }}
google-client-id: ${{ secrets.SKICKA_GOOGLE_CLIENT_ID }}
google-client-secret: ${{ secrets.SKICKA_GOOGLE_CLIENT_SECRET }}
upload-from: ./app/build/outputs/apk/master/qa/
upload-to: /starling-capture/apk/master/qa/

- name: Upload internal-debug outputs to Google Drive
uses: satackey/action-google-drive@v1
with:
skicka-tokencache-json: ${{ secrets.SKICKA_TOKENCACHE_JSON }}
google-client-id: ${{ secrets.SKICKA_GOOGLE_CLIENT_ID }}
google-client-secret: ${{ secrets.SKICKA_GOOGLE_CLIENT_SECRET }}
upload-from: ./app/build/outputs/apk/internal/debug/
upload-to: /starling-capture/apk/internal/debug/

- name: Upload internal-qa outputs to Google Drive
uses: satackey/action-google-drive@v1
with:
skicka-tokencache-json: ${{ secrets.SKICKA_TOKENCACHE_JSON }}
google-client-id: ${{ secrets.SKICKA_GOOGLE_CLIENT_ID }}
google-client-secret: ${{ secrets.SKICKA_GOOGLE_CLIENT_SECRET }}
upload-from: ./app/build/outputs/apk/internal/qa/
upload-to: /starling-capture/apk/internal/qa/

0 comments on commit cbbcf2d

Please sign in to comment.