mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 14:59:21 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William <will27528@gmail.com>
81 lines
2.7 KiB
YAML
81 lines
2.7 KiB
YAML
name: Release Tests & Publish
|
|
|
|
on:
|
|
release:
|
|
types: [ 'published' ]
|
|
|
|
permissions:
|
|
contents: read
|
|
checks: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 'Checkout for CI 🛎️'
|
|
uses: actions/checkout@v5
|
|
- name: 'Set up JDK 21 📦'
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: 'Build with Gradle 🏗️'
|
|
uses: gradle/gradle-build-action@v3
|
|
with:
|
|
arguments: build test publish
|
|
env:
|
|
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
|
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
|
- name: 'Publish Test Report 📊'
|
|
uses: mikepenz/action-junit-report@v6
|
|
if: success() || failure() # Continue on failure
|
|
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: 'husksync'
|
|
channel: 'release'
|
|
version: ${{ github.event.release.tag_name }}
|
|
changelog: ${{ github.event.release.body }}
|
|
distro-names: |
|
|
paper-1.21.1
|
|
paper-1.21.4
|
|
paper-1.21.5
|
|
paper-1.21.8
|
|
paper-1.21.10
|
|
fabric-1.21.1
|
|
fabric-1.21.4
|
|
fabric-1.21.5
|
|
fabric-1.21.8
|
|
distro-groups: |
|
|
paper
|
|
paper
|
|
paper
|
|
paper
|
|
paper
|
|
fabric
|
|
fabric
|
|
fabric
|
|
fabric
|
|
distro-descriptions: |
|
|
Paper 1.21.1
|
|
Paper 1.21.4
|
|
Paper 1.21.5
|
|
Paper 1.21.8
|
|
Paper 1.21.10
|
|
Fabric 1.21.1
|
|
Fabric 1.21.4
|
|
Fabric 1.21.5
|
|
Fabric 1.21.8
|
|
files: |
|
|
target/HuskSync-Bukkit-${{ github.event.release.tag_name }}+mc.1.21.1.jar
|
|
target/HuskSync-Bukkit-${{ github.event.release.tag_name }}+mc.1.21.4.jar
|
|
target/HuskSync-Bukkit-${{ github.event.release.tag_name }}+mc.1.21.5.jar
|
|
target/HuskSync-Bukkit-${{ github.event.release.tag_name }}+mc.1.21.8.jar
|
|
target/HuskSync-Bukkit-${{ github.event.release.tag_name }}+mc.1.21.10.jar
|
|
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.21.1.jar
|
|
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.21.4.jar
|
|
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.21.5.jar
|
|
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.21.8.jar |