Skip to content

Commit

Permalink
build: setup apikeys.properties in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
charliemangano committed Nov 9, 2024
1 parent 5aa4e5f commit 845cfea
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/AndroidBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,27 @@ jobs:
run: |
chmod +x ./gradlew
- name: Setup apikeys.properties
env:
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
SERVICE_KEY: ${{ secrets.SERVICE_KEY }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
POWERSYNC_URL: ${{ secrets.POWERSYNC_URL }}
run: |
sed "s|SUPABASE_KEY|$SUPABASE_KEY|g;" apikeys.defaults.properties > apikeys.properties
sed "s|SERVICE_KEY|SERVICE_KEY|g;" apikeys.defaults.properties > apikeys.properties
sed "s|SUPABASE_URL|SUPABASE_URL|g;" apikeys.defaults.properties > apikeys.properties
sed "s|POWERSYNC_URL|POWERSYNC_URL|g;" apikeys.defaults.properties > apikeys.properties
- name: Build with Gradle
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: dsTemplate.apk
path: app/build/outputs/apk/debug/app-debug.apk
name: PeriodPals.apk
path: app/build/outputs/apk/debug/periodpals.apk

- name: Decode Keystore
run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > /tmp/keystore.jks
Expand Down

0 comments on commit 845cfea

Please sign in to comment.