✨ feat(cicd): Adding pipeline to deploy app #14
Workflow file for this run
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: 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: Print if version changed | |
# if: steps.increment-version.outputs.previous-version != steps.increment-version.outputs.new-version | |
# run: echo "The new version is now $new_version" | |
# env: | |
# new_version: ${{ steps.increment-version.outputs.new-version }} | |
# - name: Create local.properties | |
# run: echo "BASE_URL=${BASE_SCHEME}" >> local.properties | |
# - name: Build android | |
# run: ./gradlew assembleDebug --stacktrace | |
- name: Increment version | |
id: increment-version | |
uses: RichardInnocent/[email protected] |