Skip to content

Commit

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

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

- name: Grant execute permission for gradlew
Expand All @@ -24,7 +25,7 @@ jobs:
TAG: ${{ github.event.release.tag_name }}

- name: Upload a fabric build
uses: actions/upload-artifact@v2.2.2
uses: actions/upload-artifact@v3
with:
path: build/libs/**.jar
name: fabric
Expand All @@ -39,7 +40,7 @@ jobs:
name: fabric
path: download

- uses: Kir-Antipov/mc-publish@v3.2
- uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: EjH4M3L1
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
Expand All @@ -49,20 +50,10 @@ jobs:
fabric
quilt
game-versions: |
1.16.5
1.17
1.17.1
1.18
1.18.1
1.18.2
1.19
1.19.1
1.19.2
1.19.3
1.20.1
modrinth-dependencies: |
fabric-api | depends
java: 17
version: ${{ github.event.release.tag_name }}-fabric
name: ${{ github.event.release.tag_name }}-fabric
files-primary: download/!(*-@(dev|dev-shadow)).jar
files-secondary: ""
files: download/!(*-@(dev|dev-shadow)).jar

0 comments on commit 5bd108e

Please sign in to comment.