Sync from GPI #11
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: Gradle Build | |
on: | |
schedule: | |
- cron: "0 0 1 */2 *" | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.ref }}' | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
gradle-build: | |
name: Gradle Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
dependency-graph: generate-and-upload | |
dependency-graph-exclude-projects: ':(gradm|initialization|project)' | |
- run: ./gradlew build --no-daemon --stacktrace | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CurrentActivity.apk | |
path: 'ca/app/build/outputs/apk/release/ca-app-release.apk' | |
gradle-submit-dependency-graph: | |
name: Gradle Submit Dependency Graph | |
uses: OmicoDev/gradle-project-initializer-template/.github/workflows/gradle-submit-dependency-graph.yml@main | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
needs: gradle-build | |
permissions: | |
contents: write |