Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

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 2999358 commit 86963dc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ 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: 'huskchat'
channel: 'alpha'
version: ${{ env.version_name }}
changelog: ${{ github.event.head_commit.message }}
distro-names: |
bungee-velocity-paper
distro-groups: |
bungee-velocity-paper
distro-descriptions: |
Bungee, Velocity & Paper
files: |
target/HuskChat-Plugin-${{ env.version_name }}.jar
- name: 'Fetch Version Name 📝'
run: |
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')"
Expand Down Expand Up @@ -97,10 +113,4 @@ jobs:
folia
hangar-loaders: |
velocity
java: 17
- name: 'Upload GitHub Artifact 📦'
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: HuskChat Plugin
path: target/HuskChat-Plugin-*.jar
java: 17
24 changes: 17 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ 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: 'huskchat'
channel: 'release'
version: ${{ github.event.release.tag_name }}
changelog: ${{ github.event.release.body }}
distro-names: |
bungee-velocity-paper
distro-groups: |
bungee-velocity-paper
distro-descriptions: |
Bungee, Velocity & Paper
files: |
target/HuskChat-Plugin-${{ github.event.release.tag_name }}.jar
- name: 'Publish to Modrinth & Hangar 🚰'
uses: WiIIiam278/mc-publish@hangar
with:
Expand Down Expand Up @@ -86,10 +102,4 @@ jobs:
folia
hangar-loaders: |
velocity
java: 17
- name: 'Upload GitHub Artifact 📦'
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: HuskChat Plugin
path: target/HuskChat-Plugin-*.jar
java: 17

0 comments on commit 86963dc

Please sign in to comment.