Skip to content

Commit

Permalink
fix: add google services json to workflow (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya authored Feb 7, 2025
1 parent 1a99e7c commit 0d2680c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ jobs:
- name: 📦 Install dependencies
run: yarn install

- name: 🏗 Create google-services.json file
run: echo "${{ secrets.GOOGLE_SERVICES_JSON_B64 }}" | base64 -d > ./google-services.json

- name: 🚀 Build app
run: eas build --non-interactive --platform android --local --profile preview --output=./app-release.apk
env:
GOOGLE_SERVICES_JSON: "/home/runner/work/go/go/google-services.json"

- name: 🧪 Run tests
run: yarn test:ci
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release tag
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
draft_release:
Expand All @@ -22,7 +22,7 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
# prerelease: true
# prerelease: true

build_android:
needs: [draft_release]
Expand Down Expand Up @@ -52,8 +52,13 @@ jobs:
- name: 📦 Install dependencies
run: yarn install

- name: 🏗 Create google-services.json file
run: echo "${{ secrets.GOOGLE_SERVICES_JSON_B64 }}" | base64 -d > ./google-services.json

- name: 🚀 Build app
run: eas build --non-interactive --platform android --local --profile production_apk --output=./app-release.apk
env:
GOOGLE_SERVICES_JSON: "/home/runner/work/go/go/google-services.json"

- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand All @@ -71,7 +76,6 @@ jobs:
asset_path: ./app-release.apk
asset_name: alby-go-${{ github.ref_name }}-android.apk
asset_content_type: application/vnd.android.package-archive

# publish-release:
# needs: [release, build_android]
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 0d2680c

Please sign in to comment.