Start readout as soon as ReadoutView is opened #20
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 Commit" | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- uses: actions/setup-java@v3.10.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Prepare cached external dependencies | |
uses: actions/cache@v3 | |
with: | |
key: readyougestalt_external_${{ hashFiles('.github/actions/download-externals-action/download.sh') }} | |
path: | | |
external | |
- name: Download build dependencies | |
uses: ./.github/actions/download-externals-action | |
- uses: gradle/gradle-build-action@v2.4.2 | |
- run: gradle testGestaltReleaseUnitTest | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- uses: actions/setup-java@v3.10.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Prepare cached external dependencies | |
uses: actions/cache@v3 | |
with: | |
key: readyougestalt_external_${{ hashFiles('.github/actions/download-externals-action/download.sh') }} | |
path: | | |
external | |
- name: Download build dependencies | |
uses: ./.github/actions/download-externals-action | |
- uses: gradle/gradle-build-action@v2.4.2 | |
- run: gradle assembleGestaltRelease | |
- uses: actions/upload-artifact@v3.1.1 | |
with: | |
name: gestalt-${{ github.sha }} | |
path: app/build/outputs/apk/gestalt/release/*.apk | |
release: | |
if: github.ref == 'refs/heads/gestalt' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the project | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Delete previous release | |
uses: dev-drprasad/delete-older-releases@v0.2.1 | |
with: | |
keep_latest: 0 | |
delete_tag_pattern: latest_build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update the latest_build tag | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git tag -f -m "Latest Build" latest_build | |
git push -f origin latest_build | |
- name: Download project artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: gestalt-${{ github.sha }} | |
- name: Stage upload directory | |
run: | | |
mkdir dist | |
cp *apk dist/ | |
- name: Upload to Github releases | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
tag: latest_build | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file_glob: true | |
file: dist/* | |
overwrite: true |