Skip to content

Commit

Permalink
Create android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
audgns10 authored Oct 7, 2024
1 parent 30aec0f commit 430b4e4
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Android CI

on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "*" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
fetch-depth: 0

- name: Gradle caching
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{runner.os}}-gradle-${{hashFiles('**/*.gradle*', '**/gradle-wrapper.properties')}}
restore-keys: |
${{runner.os}}-gradle-
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
cache: gradle

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: Grant execute permission for gradlew
run: chmod +x gradlew

#- name: Create LOCAL_PROPERTIES
# run: echo '${{ secrets.LOCAL_PROPERTIES }}' > ./local.properties

- name: Build with Gradle
run: ./gradlew build

- name: Expo-Android CI Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
title: ✅ Expo-Android-CI Success! ✅
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
image: ${{ secrets.SUCCESS_IMAGE }}
description:
color: 65280
url: "https://github.com/sarisia/actions-status-discord"
username: Expo-CI Bot

- name: Expo-Android CI Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
title: ❗️ Expo-Android-CI Fail! ❗️
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
image: ${{ secrets.FAILED_IMAGE }}
description: 뀨...
color: 16711680
url: "https://github.com/sarisia/actions-status-discord"
username: Expo-CI Bot

0 comments on commit 430b4e4

Please sign in to comment.