Skip to content

Commit 0236d19

Browse files
Update workflow with environmental variables + configure android sdk and properties
1 parent 0dd7be6 commit 0236d19

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
env:
13-
OPEN_API_KEY: ${{ secrets.OPEN_API_KEY }}
13+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
1414

1515
steps:
1616
- name: Checkout
@@ -23,9 +23,18 @@ jobs:
2323
java-version: 17
2424
cache: gradle
2525

26+
- name: Set up Android SDK
27+
uses: android-actions/setup-android@v2
28+
with:
29+
api-level: 33
30+
build-tools: "33.0.2"
31+
2632
- name: Grant execute permission for gradlew
2733
run: chmod +x gradlew
2834

35+
- name: Create local.properties
36+
run: echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties
37+
2938
- name: Cache Gradle dependencies
3039
uses: actions/cache@v3
3140
with:

0 commit comments

Comments
 (0)