Remove ending periods to speed up reading sentences, perhaps #29
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/[email protected] | |
- uses: actions/[email protected] | |
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/[email protected] | |
- run: gradle testGestaltReleaseUnitTest | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
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/[email protected] | |
- run: gradle assembleGestaltRelease | |
- uses: actions/[email protected] | |
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/[email protected] | |
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 |