Skip to content

Commit

Permalink
update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Jul 12, 2024
1 parent dfe8d29 commit 89ceafa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/TestBuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout branch
uses: actions/checkout@v2
uses: actions/checkout@v4.1.7

# https://github.com/madhead/read-java-properties#error-java_home-is-set-to-an-invalid-directory
- name: Gather Gradle properties
Expand All @@ -38,7 +38,7 @@ jobs:
run: sed -i "s/mod_version.*=.*/mod_version = ${{ steps.gradle_properties.outputs.mod_version }}-${{ steps.vars.outputs.SHA_SHORT }}/g" gradle.properties

- name: Set up Temurin JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
distribution: 'temurin'
java-version: '8'
Expand All @@ -48,12 +48,12 @@ jobs:
run: chmod +x gradlew

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3.4.2
with:
arguments: build

- name: Upload Build Artifacts
uses: actions/upload-artifact@v2.2.3
uses: actions/upload-artifact@v4.3.4
with:
name: GroovyScript-${{ steps.gradle_properties.outputs.mod_version }}
name: GroovyScript-${{ steps.gradle_properties.outputs.modVersion }}
path: build/libs
16 changes: 8 additions & 8 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
token: ${{ secrets.PAT }}

Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:

- name: Commit and push gradle.properties
if: env.UPDATED == 'false' # only push new version if it's not already updated
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: "Bump version to ${{ github.event.inputs.version }}"
commit_options: "--no-verify"
Expand All @@ -104,7 +104,7 @@ jobs:
fi
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
distribution: 'temurin'
java-version: '8'
Expand All @@ -113,13 +113,13 @@ jobs:
run: chmod +x gradlew

- name: Build jars
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3.4.2
with:
arguments: build

- name: Publish to GitHub
if: env.publish-gh == 'true'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2.0.6
with:
tag_name: "v${{ inputs.version }}"
token: ${{ secrets.PAT }}
Expand All @@ -141,7 +141,7 @@ jobs:
- name: Publish to Curseforge
if: ${{ inputs.publish-cf }}
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3.4.2
env:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_TOKEN }}
CHANGELOG_LOCATION: ${{ env.CHANGELOG_LOCATION }}
Expand All @@ -152,7 +152,7 @@ jobs:

- name: Publish to Modrinth
if: ${{ inputs.publish-mr }}
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3.4.2
env:
MODRINTH_API_KEY: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG_LOCATION: ${{ env.CHANGELOG_LOCATION }}
Expand All @@ -163,7 +163,7 @@ jobs:

- name: Publish to maven
if: ${{ inputs.publish-maven }}
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3.4.2
with:
arguments: publish
env:
Expand Down

0 comments on commit 89ceafa

Please sign in to comment.