Create gradle_build.yaml for new gradle build workflows
This commit is contained in:
37
.github/workflows/gradle_build.yaml
vendored
Normal file
37
.github/workflows/gradle_build.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Gradle Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Copy google-services.json
|
||||
run:
|
||||
# mkdir -p app/src/google-services.json
|
||||
echo "${{ secrets.FIREBASE_JSON }}" >> app/src/google-services.json
|
||||
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
gradle-version: '8.1.1'
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
Reference in New Issue
Block a user