File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ release :
3+ types :
4+ - created
5+ name : release
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ - name : Set up JDK 21
12+ uses : actions/setup-java@v2
13+ with :
14+ java-version : ' 21'
15+ distribution : ' adopt'
16+
17+ - name : Validate Gradle wrapper
18+ uses : gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
19+
20+ - name : Set env
21+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
22+
23+ - name : Build with Gradle
24+ env :
25+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
26+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
27+ ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
28+ ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
29+ run : ./gradlew publishToMavenCentral --no-configuration-cache -Pversion=${{ env.RELEASE_VERSION }}
You can’t perform that action at this time.
0 commit comments