Skip to content

Commit

Permalink
Fix GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
QPCrummer committed May 8, 2024
1 parent 12e16d4 commit 99c8b42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Tidy cache
uses: skjolber/tidy-cache-github-action@v1

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -34,15 +34,15 @@ jobs:
- name: Validate the Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
java-version: 21

- name: Build with Gradle
run: ./gradlew build --no-daemon
- name: Capture build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: FabricAutoCrafter
path: build/libs/
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: 21
- name: Build and publish with Gradle
run: ./gradlew modrinth publish
env:
BUILD_RELEASE: ${{github.event.prelease == false}}
MODRINTH_TOKEN: ${{secrets.MODRINTH}}
CHANGELOG: ${{ github.event.release.body }}
- name: Upload build artifacts
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v3.0
with:
files: 'build/libs/*;!build/libs/*-sources.jar;!build/libs/*-dev.jar'
repo-token: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 99c8b42

Please sign in to comment.