Skip to content

Commit

Permalink
remove usage of deprecated functionality in gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Jul 12, 2024
1 parent 89ceafa commit d525f94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/TestBuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }}

0 comments on commit d525f94

Please sign in to comment.