Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred Müller committed Oct 10, 2023
2 parents 63795b6 + 8f0bda5 commit e5425f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_and_release_signed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ jobs:
repository: manfred-mueller/signing
token: ${{ secrets.ACCESS_TOKEN }}
path: keystore
- name: Setup environment
run: |
export apiKey=${{ secrets.API_KEY }}
echo "API_KEY=$apiKey" >> $GITHUB_ENV
export apiUrl=${{ secrets.API_URL }}
echo "API_URL=$apiUrl" >> $GITHUB_ENV
- name: Set environment variables
run: |
echo "API_KEY=$API_KEY" >> $GITHUB_ENV
echo "API_URL=$API_URL" >> $GITHUB_ENV
- name: Setup JDK
uses: actions/setup-java@v3
with:
Expand Down
9 changes: 9 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add a section to set environment variables for API_KEY and API_URL
API_KEY_ENV="API_KEY"
API_URL_ENV="API_URL"

if [ -n "$API_KEY_ENV" ] && [ -n "$API_URL_ENV" ]; then
buildConfigField "String", "API_KEY", "\"${!API_KEY_ENV}\""
buildConfigField "String", "API_URL", "\"${!API_URL_ENV}\""
fi

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

Expand Down

0 comments on commit e5425f5

Please sign in to comment.