generated from javalin/javalin-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14c588b
commit a4f3472
Showing
3 changed files
with
40 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Set up JDK ${{ matrix.java_version }} | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
distribution: "zulu" | ||
java-version: ${{ matrix.java_version }} | ||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
@@ -37,8 +37,8 @@ jobs: | |
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
@@ -71,39 +71,39 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
distribution: "zulu" | ||
java-version: "17" | ||
|
||
- name: Generate version | ||
uses: HardNorth/[email protected] | ||
with: | ||
version-source: file | ||
version-file: build.gradle.kts | ||
version-file-extraction-pattern: '(?<=version\s*=\s*"")\S+(?="")' | ||
version-file-extraction-pattern: '(?<=version\s*=\s*")\S+(?=")' | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Publish to Reposilite | ||
uses: gradle/[email protected] | ||
env: | ||
MAVEN_NAME: '${{ secrets.MAVEN_NAME }}' | ||
MAVEN_TOKEN: '${{ secrets.MAVEN_TOKEN }}' | ||
ORG_GRADLE_PROJECT_signingKey: '${{ secrets.GPG_KEY }}' | ||
ORG_GRADLE_PROJECT_signingPassword: '${{ secrets.GPG_PASSPHRASE }}' | ||
ORG_GRADLE_PROJECT_signingKeyId: '${{ secrets.GPG_KEYID }}' | ||
MAVEN_NAME: "${{ secrets.MAVEN_NAME }}" | ||
MAVEN_TOKEN: "${{ secrets.MAVEN_TOKEN }}" | ||
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | ||
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSPHRASE }}" | ||
ORG_GRADLE_PROJECT_signingKeyId: "${{ secrets.GPG_KEYID }}" | ||
with: | ||
arguments: publishMavenPublicationToReposiliteRepository | ||
|
||
- name: Publish to Maven Central | ||
if: "!contains(env.CURRENT_VERSION, 'SNAPSHOT')" | ||
uses: gradle/[email protected] | ||
env: | ||
ORG_GRADLE_PROJECT_sonatypeUsername: '${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}' | ||
ORG_GRADLE_PROJECT_sonatypePassword: '${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}' | ||
ORG_GRADLE_PROJECT_signingKey: '${{ secrets.GPG_KEY }}' | ||
ORG_GRADLE_PROJECT_signingPassword: '${{ secrets.GPG_PASSPHRASE }}' | ||
ORG_GRADLE_PROJECT_signingKeyId: '${{ secrets.GPG_KEYID }}' | ||
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}" | ||
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}" | ||
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | ||
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSPHRASE }}" | ||
ORG_GRADLE_PROJECT_signingKeyId: "${{ secrets.GPG_KEYID }}" | ||
with: | ||
arguments: publishToSonatype closeAndReleaseStagingRepository | ||
|
||
|
@@ -164,19 +164,19 @@ jobs: | |
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
distribution: "zulu" | ||
java-version: "17" | ||
|
||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Publish to Reposilite | ||
uses: gradle/[email protected] | ||
env: | ||
MAVEN_NAME: '${{ secrets.MAVEN_NAME }}' | ||
MAVEN_TOKEN: '${{ secrets.MAVEN_TOKEN }}' | ||
ORG_GRADLE_PROJECT_signingKey: '${{ secrets.GPG_KEY }}' | ||
ORG_GRADLE_PROJECT_signingPassword: '${{ secrets.GPG_PASSPHRASE }}' | ||
ORG_GRADLE_PROJECT_signingKeyId: '${{ secrets.GPG_KEYID }}' | ||
MAVEN_NAME: "${{ secrets.MAVEN_NAME }}" | ||
MAVEN_TOKEN: "${{ secrets.MAVEN_TOKEN }}" | ||
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}" | ||
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PASSPHRASE }}" | ||
ORG_GRADLE_PROJECT_signingKeyId: "${{ secrets.GPG_KEYID }}" | ||
with: | ||
arguments: publishMavenPublicationToReposiliteRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters