forked from Upstream/Velocitab
ci: add bones publishing to CI
This commit is contained in:
parent
ace3644111
commit
06fce2218b
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -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
|
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user