From 40a7373707049029b51b0713f0b29b8fda45f9fa Mon Sep 17 00:00:00 2001 From: ansehun <63048392+ansehoon1999@users.noreply.github.com> Date: Sun, 3 Dec 2023 13:18:01 +0900 Subject: [PATCH] Create android.yml --- .github/workflows/android.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..2c212b9 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,33 @@ +name: Android CI + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Generate Keystore file from Github Secrets + run: | + echo "$KEYSTORE" > ./keystore/keystore.b64 + base64 -d -i ./keystore/keystore.b64 > ./Users/ansehun/Desktop/uliga/uliga_keystore + env: + KEYSTORE: ${{ secrets.APP_KEYSTORE_BASE64 }} + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build