Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Sep 28, 2024
1 parent a8055a8 commit d72e2c9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
8
16
17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
run: ./gradlew build

- name: Publish to Modrinth
uses: Apehum/[email protected]
Expand All @@ -37,9 +38,7 @@ jobs:

changelog-file: changelog.md

files: |
plugin/build/libs/!(*-@(dev|sources|javadoc)).jar
plugin/build/libs/*-@(dev|sources|javadoc).jar
files: plugin/build/libs/*.jar

version-type: alpha
loaders: |
Expand Down Expand Up @@ -68,6 +67,4 @@ jobs:
github-generate-changelog: false
changelog-file: changelog.md

files: |
plugin/build/libs/!(*-@(dev|sources|javadoc)).jar
plugin/build/libs/*-@(dev|sources|javadoc).jar
files: plugin/build/libs/*.jar
14 changes: 9 additions & 5 deletions .github/workflows/prerelease-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,22 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
8
16
17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
run: ./gradlew build

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
Expand All @@ -37,6 +43,4 @@ jobs:
github-prerelease: true
changelog-file: changelog.md

files: |
plugin/build/libs/!(*-@(dev|sources|javadoc)).jar
plugin/build/libs/*-@(dev|sources|javadoc).jar
files: plugin/build/libs/*.jar
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
8
16
17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
run: ./gradlew build

- name: Publish to Modrinth
uses: Apehum/[email protected]
Expand All @@ -37,9 +38,7 @@ jobs:

changelog-file: changelog.md

files: |
plugin/build/libs/!(*-@(dev|sources|javadoc)).jar
plugin/build/libs/*-@(dev|sources|javadoc).jar
files: plugin/build/libs/*.jar

loaders: |
paper
Expand Down Expand Up @@ -67,6 +66,4 @@ jobs:
github-generate-changelog: false
changelog-file: changelog.md

files: |
plugin/build/libs/!(*-@(dev|sources|javadoc)).jar
plugin/build/libs/*-@(dev|sources|javadoc).jar
files: plugin/build/libs/*.jar

0 comments on commit d72e2c9

Please sign in to comment.