Skip to content

Commit

Permalink
Update github workflow to include client_secrets.json in Preview build
Browse files Browse the repository at this point in the history
      - name: Write client_secrets.json
        uses: DamianReeves/write-file-action@v1.2
        with:
          path: app/src/main/assets/client_secrets.json
          contents: ${{ secrets.CLIENT_SECRETS_TEXT }}
          write-mode: overwriteclient_secrets.json
  • Loading branch information
cuong-tran committed Mar 29, 2024
1 parent 21ce810 commit cdd3a7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ jobs:
contents: ${{ secrets.GOOGLE_SERVICES_TEXT }}
write-mode: overwrite

- name: Write client_secrets.json
uses: DamianReeves/write-file-action@v1.2
with:
path: app/src/main/assets/client_secrets.json
contents: ${{ secrets.CLIENT_SECRETS_TEXT }}
write-mode: overwrite

- name: Build app
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
run: ./gradlew assembleStandardRelease testStandardReleaseUnitTest --stacktrace
Expand Down

0 comments on commit cdd3a7f

Please sign in to comment.