File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1414 publish :
1515 runs-on : ubuntu-latest
1616
17+ env :
18+ GPG_FILE_NAME : onesignal_sdk_gpg_subkeys.gpg
19+
1720 steps :
1821 - name : Checkout code
1922 uses : actions/checkout@v4
@@ -49,14 +52,24 @@ jobs:
4952 - name : Run tests
5053 run : ./gradlew test
5154
55+ - name : Decode GPG file from secret
56+ run : |
57+ echo "${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}" | base64 -d > "$GPG_FILE_NAME"
58+ echo "GPG_FILE_PATH=$(pwd)/$GPG_FILE_NAME" >> $GITHUB_ENV
59+
60+ - name : Verify GPG file
61+ run : |
62+ ls -lh "$GPG_FILE_PATH"
63+ gpg --list-packets "$GPG_FILE_PATH" || echo "Invalid key file!"
64+
5265 - name : Publish to Maven Central
5366 run : |
5467 ./gradlew publishToMavenCentral --no-configuration-cache \
5568 -PmavenCentralUsername="${{ secrets.MAVEN_CENTRAL_USERNAME }}" \
5669 -PmavenCentralPassword="${{ secrets.MAVEN_CENTRAL_PASSWORD }}" \
5770 -Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" \
5871 -Psigning.password="${{ secrets.SIGNING_PASSWORD }}" \
59- -Psigning.secretKeyRingFile="${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} "
72+ -Psigning.secretKeyRingFile="$GPG_FILE_PATH "
6073
6174 - name : Upload build artifacts
6275 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments