Skip to content

Commit

Permalink
I have worked on:
Browse files Browse the repository at this point in the history
- Updated workflow for api key.
  • Loading branch information
AliAzaz committed Sep 25, 2023
1 parent b13af64 commit 1180672
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/manual_dispatch_app_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: Grant Permission to Execute
run: chmod +x gradlew

- name: Upload API Key to gradle properties 🔥
run: sed -i "s|PIXABAY_KEY|${{secrets.PIXABAY_KEY}}|g" ./gradle.properties

- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: Build - APK 🔥
run: bash ./gradlew assemble${{env.APP_TYPE}}

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
versionName ConfigurationData.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

buildConfigField("String", "PIXABAY_KEY", PIXABAY_KEY)
buildConfigField "String", "PIXABAY_KEY", "\"${PIXABAY_KEY}\""
}

signingConfigs {
Expand Down

0 comments on commit 1180672

Please sign in to comment.