Skip to content

Commit

Permalink
ci: Maven Central deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Feb 21, 2021
1 parent 1ebc921 commit 8cedf3f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,17 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew build && ./gradlew --stop
run: ./gradlew build
- name: Deploy to Maven Central
if: matrix.os == 'ubuntu' && matrix.java == 8 && startsWith(github.ref, 'refs/tags/v')
run: |
echo '${{ secrets.SIGNING_KEY }}' | base64 -d > /tmp/signing_key.gpg
./gradlew \
'-PnexusUsername=${{ secrets.NEXUS_USERNAME }}' \
'-PnexusPassword=${{ secrets.NEXUS_PASSWORD }}' \
'-Psigning.keyId=${{ secrets.SIGNING_KEY_ID }}' \
'-Psigning.password=${{ secrets.SIGNING_PASSWORD }}' \
'-Psigning.secretKeyRingFile=/tmp/signing_key.gpg' \
uploadArchives closeAndReleaseRepository
- name: Stop Gradle Daemon
run: ./gradlew --stop

0 comments on commit 8cedf3f

Please sign in to comment.