From 4c24655f1aa24c8c8f7b089ee7c23b68ee88de64 Mon Sep 17 00:00:00 2001 From: seymourimadeit Date: Thu, 11 Jul 2024 16:37:38 -0700 Subject: [PATCH] bleh --- .github/workflows/publish-modrinth.yml | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/publish-modrinth.yml diff --git a/.github/workflows/publish-modrinth.yml b/.github/workflows/publish-modrinth.yml new file mode 100644 index 0000000..df99f8b --- /dev/null +++ b/.github/workflows/publish-modrinth.yml @@ -0,0 +1,39 @@ +name: Build + +on: [ workflow_dispatch ] +jobs: + build: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1000 + fetch-tags: true + + - name: Setup JDK 21 + uses: actions/setup-java@v2 + with: + java-version: '21' + distribution: 'temurin' + + - name: Build with Gradle + uses: gradle/actions/setup-gradle@v3 + with: + arguments: build + gradle-version: current + + - name: mc-publish + uses: Kir-Antipov/mc-publish@v3.3.0 + with: + modrinth-id: iRE67WIn + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + files-primary: build/libs/!(*-@(javadoc|sources)).jar + version: release + loaders: neoforge + game-versions: 1.21 + java: 21 + name: "" + changelog-file: changelog-1.21.*