From 06fce2218b321812988d2fe97048173e4871a44e Mon Sep 17 00:00:00 2001 From: William Date: Thu, 25 Jul 2024 12:10:56 +0100 Subject: [PATCH] ci: add bones publishing to CI --- .github/workflows/ci.yml | 24 +++++++++++++++++------- .github/workflows/release.yml | 23 +++++++++++++++++------ 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5756f8..9afe748 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,22 @@ 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: 'velocitab' + channel: 'alpha' + version: ${{ env.version_name }} + changelog: ${{ github.event.head_commit.message }} + distro-names: | + velocity + distro-groups: | + velocity + distro-descriptions: | + Velocity + files: | + target/Velocitab-${{ env.version_name }}.jar - name: 'Publish to Modrinth & Hangar 🧽' uses: WiIIiam278/mc-publish@hangar with: @@ -107,10 +123,4 @@ jobs: 1.20.5 1.20.6 1.21 - java: 17 - - name: 'Upload GitHub Artifact 📦' - uses: actions/upload-artifact@v4 - if: success() || failure() - with: - name: Velocitab - path: target/Velocitab-*.jar \ No newline at end of file + java: 17 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ebeb33..f010558 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,22 @@ jobs: env: RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + - name: 'Publish to William278.net 🚀' + uses: WiIIiam278/bones-publish-action@v1 + with: + api-key: ${{ secrets.BONES_API_KEY }} + project: 'velocitab' + channel: 'release' + version: ${{ github.event.release.tag_name }} + changelog: ${{ github.event.release.body }} + distro-names: | + velocity + distro-groups: | + velocity + distro-descriptions: | + Velocity + files: | + target/Velocitab-${{ github.event.release.tag_name }}.jar - name: 'Publish to Modrinth & Hangar 🚰' uses: WiIIiam278/mc-publish@hangar with: @@ -96,9 +112,4 @@ jobs: 1.20.5 1.20.6 1.21 - java: 17 - - name: 'Upload GitHub Artifacts 📦' - uses: actions/upload-artifact@v4 - with: - name: Velocitab - path: target/Velocitab-*.jar \ No newline at end of file + java: 17 \ No newline at end of file