Skip to content

Commit

Permalink
env var
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam committed Dec 11, 2023
1 parent 0c4792a commit d670397
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ on:
branches:
- master
pull_request:

jobs:
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE}}
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
echo "${{ secrets.PGP_PRIVATE_KEY_BASE64 }}" | base64 --decode > /tmp/gpg.key
echo "${{ secrets.GPG_BASE64 }}" | base64 --decode > /tmp/gpg.key
ls -al /tmp
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
gpg-private-key: /tmp/gpg.key
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg-passphrase: GPG_PASSPHRASE

- name: Setup Gradle
uses: gradle/[email protected]
Expand Down

0 comments on commit d670397

Please sign in to comment.