Skip to content

Commit

Permalink
ci: add bones publishing to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Jul 25, 2024
1 parent 506d1d4 commit 0eeab97
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0eeab97

Please sign in to comment.