Skip to content

✨ feat(cicd): Adding pipeline to deploy app #17

✨ feat(cicd): Adding pipeline to deploy app

✨ feat(cicd): Adding pipeline to deploy app #17

Workflow file for this run

name: Deploy QA
# on:
# push:
# branches:
# - homolog
on:
pull_request:
branches:
- "*"
jobs:
build_and_deploy:
name: Build
runs-on: ubuntu-22.04
concurrency: ci-${{ github.ref }}
permissions:
contents: write
env:
isCI: "true"
BASE_SCHEME: ${{ secrets.BASE_URL_DEBUG }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: "17"
- name: Create local.properties
run: |
echo "BASE_URL=${BASE_SCHEME}" >> local.properties
echo "ciVersionName=Teste" >> local.properties
- name: Add Google Services JSON
shell: bash
run: |
echo "${{ secrets.GOOGLE_SERVICES }}" > app/google-services.json
ls
- name: Build android
run: ./gradlew clean assembleDebug --stacktrace
- name: Upload Apk to Firebase App Distribution QA
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
file: app/build/outputs/apk/debug/app-debug.apk
groups: routinely---qa
- name: Increment version
id: increment-version
uses: RichardInnocent/[email protected]