generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove usage of deprecated functionality in gh actions
- Loading branch information
Showing
2 changed files
with
12 additions
and
14 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 |
---|---|---|
|
@@ -48,9 +48,10 @@ jobs: | |
run: chmod +x gradlew | ||
|
||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: build | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Build Project | ||
run: ./gradlew build | ||
|
||
- name: Upload Build Artifacts | ||
uses: actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -112,10 +112,11 @@ jobs: | |
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build jars | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: build | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Build Project | ||
run: ./gradlew build | ||
|
||
- name: Publish to GitHub | ||
if: env.publish-gh == 'true' | ||
|
@@ -141,31 +142,27 @@ jobs: | |
- name: Publish to Curseforge | ||
if: ${{ inputs.publish-cf }} | ||
uses: gradle/[email protected] | ||
run: ./gradlew curseforge | ||
env: | ||
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_TOKEN }} | ||
CHANGELOG_LOCATION: ${{ env.CHANGELOG_LOCATION }} | ||
RELEASE_TYPE: ${{ inputs.release-type }} | ||
with: | ||
arguments: 'curseforge' | ||
generate-job-summary: false | ||
|
||
- name: Publish to Modrinth | ||
if: ${{ inputs.publish-mr }} | ||
uses: gradle/[email protected] | ||
run: ./gradlew modrinth | ||
env: | ||
MODRINTH_API_KEY: ${{ secrets.MODRINTH_TOKEN }} | ||
CHANGELOG_LOCATION: ${{ env.CHANGELOG_LOCATION }} | ||
RELEASE_TYPE: ${{ inputs.release-type }} | ||
with: | ||
arguments: 'modrinth' | ||
generate-job-summary: false | ||
|
||
- name: Publish to maven | ||
if: ${{ inputs.publish-maven }} | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: publish | ||
run: ./gradlew publish | ||
env: | ||
MAVEN_USER: ${{ secrets.MAVEN_NAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |