Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
grablack committed Dec 8, 2023
1 parent 82ce7fa commit 8d70d51
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
name: Build
runs-on: ubuntu-latest

env:
SIGNING_KEY_FILE_PATH: /home/runner/secretKey.gpg

strategy:
matrix:
codebase: [library, demo]
Expand All @@ -25,6 +28,20 @@ jobs:
distribution: 'temurin'
cache: gradle

#After decoding the secret key, place the file in ~ /. Gradle/ secring.gpg
- name: Decode Signing Key
uses: ./.github/actions/decode_signing_key_action
with:
signing_key_file: ${{ secrets.SIGNING_KEY_FILE }}
signing_file_path: ${{ env.SIGNING_KEY_FILE_PATH }}

- name: Assemble
run: ./gradlew --stacktrace assemble -x :Demo:assemble # we exclude Demo module in assemble
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE: ${{ env.SIGNING_KEY_FILE_PATH }}

# Only library assets are needed for the build step
- name: Build with Gradle
run: ./gradlew :${{ matrix.codebase }}:assemble
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ nexusPublishing {
username = System.getenv('SONATYPE_NEXUS_USERNAME') ?: ''
password = System.getenv('SONATYPE_NEXUS_PASSWORD') ?: ''
repositoryDescription = "Paypal Android SDK"
packageGroup = "com.paypal"
packageGroup = "com.paypal.messages"
}
}
transitionCheckOptions {
Expand Down

0 comments on commit 8d70d51

Please sign in to comment.