-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to common publish actions and upgrade to Java 21
- Loading branch information
1 parent
7f9c66b
commit 414cd90
Showing
4 changed files
with
14 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,12 @@ | ||
name: Publish to development (snapshot) repo | ||
name: "Publish to development (snapshot) repo" | ||
|
||
on: push | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get Commit Hash | ||
id: commit | ||
uses: pr-mpt/actions-commit-hash@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 | ||
- name: Publish package | ||
uses: gradle/gradle-build-action@ced6859e9c4c384100f94984814deb1bd361f648 | ||
- uses: "emortalmc/actions/java/publish-dev@main" | ||
with: | ||
arguments: publishMavenPublicationToDevelopmentRepository | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }} | ||
COMMIT_HASH: ${{ steps.commit.outputs.hash }} | ||
COMMIT_HASH_SHORT: ${{ steps.commit.outputs.short }} | ||
maven-username: "${{ secrets.MAVEN_USERNAME }}" | ||
maven-password: "${{ secrets.MAVEN_SECRET }}" |
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 |
---|---|---|
@@ -1,28 +1,14 @@ | ||
name: Publish to release repo | ||
name: "Publish to release repo" | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get Commit Hash | ||
id: commit | ||
uses: pr-mpt/actions-commit-hash@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 | ||
- name: Publish package | ||
uses: gradle/gradle-build-action@ced6859e9c4c384100f94984814deb1bd361f648 | ||
- uses: "emortalmc/actions/java/publish-release@main" | ||
with: | ||
arguments: publishMavenPublicationToReleaseRepository | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }} | ||
RELEASE_VERSION: ${{ github.ref_name }} | ||
maven-username: "${{ secrets.MAVEN_USERNAME }}" | ||
maven-password: "${{ secrets.MAVEN_SECRET }}" |
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