Skip to content

Commit

Permalink
Auto Upload Banner API
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5734 committed Oct 17, 2024
1 parent 13ebf1e commit 5b303a6
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on : [push, pull_request]

env:
MINECRAFT_VERSION: 1.20.1
VERSION: 1.20.x-snapshot
VERSION: 1.20.1-snapshot
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
RELEASE_NAME: banner-1.20.x
RELEASE_NAME: banner-1.20.1

jobs:
build:
Expand All @@ -27,7 +27,7 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
Expand All @@ -37,17 +37,9 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

- name: Publish to ModRinth
uses: Kir-Antipov/mc-publish@v3.3.0
run: ./gradlew cleaBuild build
- name: Upload API Lib
uses: actions/upload-artifact@v4
with:
modrinth-id: 7ntInrAy
modrinth-token: "${{env.MODRINTH_TOKEN}}"
name: "${{env.RELEASE_NAME}}"
version: "${{env.VERSION}}"
version-type: release

loaders: fabric
game-versions: '1.20.1'
java: "17"
name: Banner API
path: ./banner-api/build/devlibs/*.jar

0 comments on commit 5b303a6

Please sign in to comment.