From 3ef256a91828346a58256ad5862fdaa365fe4a0a Mon Sep 17 00:00:00 2001 From: Sergey Ivchenko <51062874+Aurocosh@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:24:58 +0700 Subject: [PATCH] Added CurseForge publish to actions --- .github/workflows/gradle.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 7cbecf1f..224d4ef1 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -13,6 +13,9 @@ on: pull_request: branches: [ "master" ] +env: + ANOTHER_VAR: ${{ secrets.CURSEFORGE_API_KEY }} + jobs: build: @@ -46,6 +49,9 @@ jobs: - name: Build with Gradle Wrapper run: ./gradlew build + - name: Publish on CurseForge + run: ./gradlew curseforge + # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html). # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version. # @@ -61,4 +67,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: divine-favor - path: build/libs \ No newline at end of file + path: build/libs