Forráskód Böngészése

Publish to maven central

Him188 4 éve
szülő
commit
eea34e51fb
1 módosított fájl, 8 hozzáadás és 0 törlés
  1. 8 0
      .github/workflows/release.yml

+ 8 - 0
.github/workflows/release.yml

@@ -22,9 +22,17 @@ jobs:
       - name: Grant Execute Permission for gradlew
         run: chmod +x gradlew
 
+      - run: ./gradlew checkMavenCentralPublication --info  --scan
+        env:
+          PUBLICATION_CREDENTIALS: ${{ secrets.PUBLICATION_CREDENTIALS }}
+
       - name: Build with Gradle
         run: ./gradlew buildCiJar
 
+      - run: ./gradlew publish --info  --scan
+        env:
+          PUBLICATION_CREDENTIALS: ${{ secrets.PUBLICATION_CREDENTIALS }}
+
       - name: Get Tag
         id: tag
         uses: dawidd6/action-get-tag@v1