Skip to content

Commit

Permalink
Update actions in gradle workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Nov 24, 2024
1 parent 94cfcef commit 3de453c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '21'
- name: Validate gradlew integrity
uses: gradle/wrapper-validation-action@v1
- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle') }}
Expand Down Expand Up @@ -53,26 +53,26 @@ jobs:
gpg --local-user "Violet Moon Signing Key" --armor \
--detach-sign ${{ steps.calculate_artifact_names.outputs.fabric }}
- name: Archive NeoForge Jar
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: NeoForge Jar
path: |
${{ steps.calculate_artifact_names.outputs.neoforge }}
- name: Archive NeoForge Signature
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ env.SIGNING_KEY != '' && startsWith(github.ref, 'refs/tags/release-')}}
with:
name: NeoForge Signature
path: |
${{ steps.calculate_artifact_names.outputs.neoforge }}.asc
- name: Archive Fabric Jar
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Fabric Jar
path: |
${{ steps.calculate_artifact_names.outputs.fabric }}
- name: Archive Fabric Signature
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{ env.SIGNING_KEY != '' && startsWith(github.ref, 'refs/tags/release-')}}
with:
name: Fabric Signature
Expand Down

0 comments on commit 3de453c

Please sign in to comment.