Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add google services json to workflow #268

Merged
merged 17 commits into from
Feb 7, 2025
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