ci: uncomment Publish To Maven Central
[skip ci]
@@ -27,22 +27,22 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build All
- run: ./gradlew micronaut-cli:assemble docs
+ run: ./gradlew micronaut-cli:assemble
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
-# - name: Publish to Maven Central
-# env:
-# SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
-# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
-# GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
-# GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
-# GPG_FILE: ${{ secrets.GPG_FILE }}
-# GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
-# GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
-# GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
-# run: echo $GPG_FILE | base64 -d > secring.gpg && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository docs
+ - name: Publish to Maven Central
+ env:
+ SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
+ SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
+ GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
+ GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
+ GPG_FILE: ${{ secrets.GPG_FILE }}
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
+ GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
+ GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
+ run: echo $GPG_FILE | base64 -d > secring.gpg && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository docs
- name: Upload CLI Zip
id: upload-release-asset
uses: actions/upload-release-asset@v1
