Automatic project build #1
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: Build and sent to QA stageQa | |
on: | |
pull_request: | |
# types: | |
# - closed | |
branches: [ "dev" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v1 | |
with: { java-version: 1.17 } | |
- name: Build and send application stageQa to App Distribution | |
env: | |
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | |
run: | | |
echo CREDENTIAL_FILE_CONTENT > ./app/serviceCredentialsFile.json | |
echo "App type: stageQa" >> ./app/releaseNotes.txt | |
echo "buildNumber=${GITHUB_RUN_NUMBER}" >> ./app/releaseNotes.txt | |
./gradlew appDistributionToQaStageQa | |
- name: Check status | |
run: echo "Check build status and send status" | |
- name: Set failed if build failed | |
if: failure() | |
run: | | |
echo "::error::Build or send build stageQa to App Distribution failed" |