Merge pull request #4 from VSPlayStore/dependabot/github_actions/acti… #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
branches: [ 'main' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: gradle | |
- name: Create file | |
run: | | |
echo DECRYPTION_KEY=${{ secrets.DECRYPTION_KEY }} > .env | |
echo VERIFICATION_KEY=${{ secrets.VERIFICATION_KEY }} >> .env | |
echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 -d > app/google-services.json | |
- name: Build with Gradle | |
run: chmod +x gradlew && ./gradlew assembleDebug --stacktrace | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app | |
path: app/build/outputs/apk/debug/app-debug.apk |