From 6454f127c2ce95769b35dcf951027b580ac92c47 Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:38:57 -0700 Subject: [PATCH] Add automation for 1.21.1 builds --- .github/workflows/publish.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..e89e2045 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,34 @@ +name: Release for 1.21.1 + +on: + push: + branches: [ '1.21.1' ] + workflow_dispatch: + +jobs: + release: + name: Publish release JAR for Ex Deorum + runs-on: ubuntu-latest + if: "startsWith(github.event.head_commit.message, '[Release]')" + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'microsoft' + java-version: '21' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Upload to CurseForge + run: ./gradlew curseforge + env: + CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} + + - name: Upload to Modrinth + run: ./gradlew modrinth + env: + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} \ No newline at end of file