Skip to content

Commit 4e077c0

Browse files
committed
Use secrets instead of FROM_PR status
1 parent bca359d commit 4e077c0

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

github-action-build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ EOL
8383
else
8484
if [ ! $GPG_KEY_NAME ] || [ ! $GPG_PASSPHRASE ] || [ ! $MAVEN_PASS ] || [ ! $OSSRH_PASS ]; then
8585
echo "No deploy -- secure environment variables not available"
86-
elif [ $FROM_PR ]; then
87-
echo "No deploy -- pull request detected"
8886
else
8987
echo "All checks passed for artifact deployment"
9088
deployOK=1

github-actionify.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ jobs:
158158
distribution: 'zulu'
159159
- name: Build with Maven
160160
run: ./$gitactionBuildScript
161+
env:
162+
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
163+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
164+
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
165+
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
166+
SIGNINGIVSECRET: ${{ secrets.SIGNINGIVSECRET }}
167+
SIGNINGKEYSECRET: ${{ secrets.SIGNINGKEYSECRET }}
168+
161169
EOL
162170
update "$gitactionConfig"
163171

@@ -196,8 +204,6 @@ jobs:
196204
distribution: 'zulu'
197205
- name: Build with Maven
198206
run: ./$gitactionBuildScript
199-
env:
200-
FROM_PR: true
201207
EOL
202208
update "$gitactionPRConfig"
203209

0 commit comments

Comments
 (0)