diff --git a/.github/workflows/AndroidBuild.yml b/.github/workflows/AndroidBuild.yml index e85869c64..06bb68424 100644 --- a/.github/workflows/AndroidBuild.yml +++ b/.github/workflows/AndroidBuild.yml @@ -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