Skip to content

Commit

Permalink
Added some steps to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSchmelter committed Dec 3, 2024
1 parent 9402870 commit 8bb4d71
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,16 @@ jobs:
exit 1
fi
#Deployment
- name: Setup GPG
run: |
echo "${{ secrets.MAVENCENTRAL_SIGNINGKEY }}" | base64 --decode > ./signingkey.asc
gpg --batch --import ./signingkey.asc
gpg --list-secret-keys --keyid-format LONG
- name: Deploy
run: |
currentVersion=$(./gradlew -q devVersion)
cat <(echo -e "${{ secrets.MAVENCENTRAL_SIGNINGKEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
./gradlew publish\
-Puser=${{ secrets.MAVENCENTRAL_USER }} \
Expand All @@ -91,3 +96,9 @@ jobs:
-Psigning.password=${{ secrets.MAVENCENTRAL_SIGNINGPASS }} \
-Psigning.secretKeyRingFile=${{ secrets.MAVENCENTRAL_SIGNINGKEY }} \
-Pversion=$currentVersion
- name: Clean Up
run: |
rm -rf ./signingkey.asc
gpg --batch --delete-secret-keys "${{ secrets.MAVENCENTRAL_SIGNINGKEYID }}"
gpg --batch --delete-keys "${{ secrets.MAVENCENTRAL_SIGNINGKEYID }}"

0 comments on commit 8bb4d71

Please sign in to comment.