ci: add bones publishing to CI

This commit is contained in:
William 2024-07-25 12:10:56 +01:00
parent ace3644111
commit 06fce2218b
No known key found for this signature in database
2 changed files with 34 additions and 13 deletions

View File

@ -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
java: 17

View File

@ -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
java: 17