From 0eeab972e45bef2f077e513ea8e9b8a6a8216da9 Mon Sep 17 00:00:00 2001 From: William Date: Thu, 25 Jul 2024 12:02:57 +0100 Subject: [PATCH] ci: add bones publishing to CI --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25d20fab..2554c36b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,30 @@ jobs: - name: Get Version run: | echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV + - name: 'Publish to William278.net 🚀' + uses: WiIIiam278/bones-publish-action@v1 + with: + api-key: ${{ secrets.BONES_API_KEY }} + project: 'huskhomes' + channel: 'alpha' + version: ${{ env.version_name }} + changelog: ${{ github.event.head_commit.message }} + distro-names: | + paper + sponge-10 + fabric-1.21 + distro-groups: | + paper + sponge + fabric + distro-descriptions: | + Paper + Sponge API 10 + Fabric 1.21 + files: | + target/HuskHomes-Paper-${{ env.version_name }}.jar + target/HuskHomes-Sponge-${{ env.version_name }}.jar + target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.jar - name: 'Spigot: Publish to Modrinth & Hangar 🚰' uses: WiIIiam278/mc-publish@hangar with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56f58c58..11c0bd6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,30 @@ jobs: if: success() || failure() # always run even if the previous step fails with: report_paths: '**/build/test-results/test/TEST-*.xml' + - name: 'Publish to William278.net 🚀' + uses: WiIIiam278/bones-publish-action@v1 + with: + api-key: ${{ secrets.BONES_API_KEY }} + project: 'huskhomes' + channel: 'release' + version: ${{ github.event.release.tag_name }} + changelog: ${{ github.event.release.body }} + distro-names: | + paper + sponge-10 + fabric-1.21 + distro-groups: | + paper + sponge + fabric + distro-descriptions: | + Paper + Sponge API 10 + Fabric 1.21 + files: | + target/HuskHomes-Paper-${{ github.event.release.tag_name }}.jar + target/HuskHomes-Sponge-${{ github.event.release.tag_name }}.jar + target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.jar - name: 'Spigot: Publish to Modrinth & Hangar 🚰' uses: WiIIiam278/mc-publish@hangar with: