From da70a54d78518d88f1f0071ab209f8904ac74586 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 24 Jul 2024 23:49:20 +0100 Subject: [PATCH] ci: add bones publishing to CI --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- .github/workflows/release.yml | 22 +++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17e79afe..238699ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,4 +41,24 @@ jobs: id: fetch-version - name: Get Version run: | - echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV \ No newline at end of file + 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: 'husksync' + channel: 'alpha' + version: ${{ env.version_name }} + changelog: ${{ github.event.head_commit.message }} + distro-names: | + paper + fabric-1.20.1 + distro-groups: | + paper + fabric + distro-descriptions: | + Paper + Fabric 1.20.1 + files: | + target/HuskSync-Paper-${{ env.version_name }}.jar + target/HuskSync-Fabric-${{ env.version_name }}+mc.1.20.1.jar \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36012814..fb0608c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,4 +30,24 @@ jobs: uses: mikepenz/action-junit-report@v4 if: success() || failure() # Continue on failure with: - report_paths: '**/build/test-results/test/TEST-*.xml' \ No newline at end of file + 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: 'husksync' + channel: 'release' + version: ${{ github.event.release.tag_name }} + changelog: ${{ github.event.release.body }} + distro-names: | + paper + fabric-1.20.1 + distro-groups: | + paper + fabric + distro-descriptions: | + Paper + Fabric 1.20.1 + files: | + target/HuskSync-Paper-${{ github.event.release.tag_name }}.jar + target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.20.1.jar \ No newline at end of file