From 05612b9dd5ac328e70f11db8ee6639df87b83741 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 23 Apr 2023 20:46:28 +0100 Subject: [PATCH] Add Hangar CI & release publishing --- .github/workflows/ci.yml | 11 +++++++---- .github/workflows/release.yml | 10 ++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fe46efb..43e97b27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,8 +39,8 @@ jobs: - name: Get Version run: | echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV - - name: Upload to Modrinth (Spigot) - uses: Kir-Antipov/mc-publish@v3.2 + - name: Upload to Modrinth & Hangar (Spigot) + uses: WiIIiam278/mc-publish@hangar with: modrinth-id: J6U9o3JG modrinth-featured: false @@ -50,6 +50,9 @@ jobs: dynmap | suggests | * pl3xmap | suggests | * plan-player-analytics | suggests | * + hangar-id: William278/HuskHomes + hangar-token: ${{ secrets.HANGAR_API_KEY }} + hangar-version-type: Alpha files-primary: target/HuskHomes-Plugin-*.jar name: HuskHomes (Spigot) v${{ env.version_name }} version: ${{ env.version_name }} @@ -66,7 +69,7 @@ jobs: 1.19.4 java: 16 - name: Upload to Modrinth (Sponge) - uses: Kir-Antipov/mc-publish@v3.2 + uses: WiIIiam278/mc-publish@hangar with: modrinth-id: J6U9o3JG modrinth-featured: false @@ -88,7 +91,7 @@ jobs: 1.19.4 java: 16 - name: Upload to Modrinth & CurseForge (Fabric) - uses: Kir-Antipov/mc-publish@v3.2 + uses: WiIIiam278/mc-publish@hangar with: modrinth-id: J6U9o3JG modrinth-featured: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65cb05f4..bc99d1b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,8 +28,8 @@ jobs: if: success() || failure() # always run even if the previous step fails with: report_paths: '**/build/test-results/test/TEST-*.xml' - - name: Upload to Modrinth (Spigot) - uses: Kir-Antipov/mc-publish@v3.2 + - name: Upload to Modrinth & Hangar (Spigot) + uses: WiIIiam278/mc-publish@hangar with: modrinth-id: J6U9o3JG modrinth-featured: false @@ -39,6 +39,8 @@ jobs: dynmap | suggests | * pl3xmap | suggests | * plan-player-analytics | suggests | * + hangar-id: William278/HuskHomes + hangar-token: ${{ secrets.HANGAR_API_KEY }} files-primary: target/HuskHomes-Plugin-*.jar name: HuskHomes (Spigot) v${{ github.event.release.tag_name }} version: ${{ github.event.release.tag_name }} @@ -55,7 +57,7 @@ jobs: 1.19.4 java: 16 - name: Upload to Modrinth (Sponge) - uses: Kir-Antipov/mc-publish@v3.2 + uses: WiIIiam278/mc-publish@hangar with: modrinth-id: J6U9o3JG modrinth-featured: false @@ -77,7 +79,7 @@ jobs: 1.19.4 java: 16 - name: Upload to Modrinth & CurseForge (Fabric) - uses: Kir-Antipov/mc-publish@v3.2 + uses: WiIIiam278/mc-publish@hangar with: modrinth-id: J6U9o3JG modrinth-featured: false