From 0ba1f41fb5e821ebbee10c45ab39eb9ca2c4b899 Mon Sep 17 00:00:00 2001 From: Anthony <67132971+nthxny@users.noreply.github.com> Date: Mon, 3 Jul 2023 23:32:39 -0400 Subject: [PATCH] Create gradle-publish.yml --- .github/workflows/gradle-publish.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/gradle-publish.yml diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml new file mode 100644 index 0000000..20e4813 --- /dev/null +++ b/.github/workflows/gradle-publish.yml @@ -0,0 +1,36 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle + +name: Gradle Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - { uses: actions/checkout@v2, with: { fetch-depth: 0 } } + - name: "Set up JDK 17" + uses: actions/setup-java@v2 + with: { distribution: "adopt", java-version: "17" } + + - name: "Build with Gradle" + id: build + run: "chmod +x gradlew && ./gradlew build publish" + + - uses: Kir-Antipov/mc-publish@v3.3 + with: + curseforge-id: 538560 + curseforge-token: ${{ secrets.CF_API_TOKEN }} + loaders: | + forge + game-versions: | + 1.19.2 + java: | + 17