Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 committed May 23, 2024
1 parent 5bd108e commit 04d8324
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk 17
uses: actions/setup-java@v3
- name: setup jdk 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
java-version: 21
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: capture build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
java-version: 21

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand All @@ -35,25 +35,24 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: fabric
path: download

- uses: Kir-Antipov/mc-publish@v3.3
- uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659
with:
modrinth-id: EjH4M3L1
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

github-token: ${{ secrets.GITHUB_TOKEN }}
loaders: |
fabric
quilt
game-versions: |
1.20.1
1.20.6
modrinth-dependencies: |
fabric-api | depends
java: 17
java: 21
version: ${{ github.event.release.tag_name }}-fabric
name: ${{ github.event.release.tag_name }}-fabric
files: download/!(*-@(dev|dev-shadow)).jar

0 comments on commit 04d8324

Please sign in to comment.