🚀 [VIS-4480] Get maestro working on android api level 24 and above and build and deploy to github releases #4
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: Build Maestro for Dojo | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Java JDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '1.8' | |
distribution: 'adopt' | |
- name: Assemble APKs | |
run: ./gradlew :maestro-android:assembleAndroidTest :maestro-android:assemble | |
- name: Install maestro-cli | |
run: ./gradlew :maestro-cli:installDist -q | |
- name: Create GitHub Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload maestro-cli asset to GitHub release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./maestro-cli/build/install/maestro/bin/maestro | |
asset_name: maestro | |
asset_content_type: application/octet-stream |