Release Tests #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Tests | |
on: | |
release: | |
types: [ 'published' ] | |
permissions: | |
contents: read | |
checks: write | |
jobs: | |
build: | |
name: 'Publish Release' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Setup JDK 21 📦' | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: 'Setup Gradle 8.8 🏗️' | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: '8.8' | |
- name: '[Current - 1.21.3] Checkout for CI 🛎️' | |
uses: actions/checkout@v4 | |
with: | |
path: '1_21_3' | |
- name: '[Non-LTS - 1.21.1] Checkout for CI 🛎️' | |
uses: actions/checkout@v4 | |
with: | |
path: '1_21_1' | |
- name: '[LTS - 1.20.1] Checkout for CI 🛎️' | |
uses: actions/checkout@v4 | |
with: | |
ref: 'minecraft/1.20.1' | |
path: '1_20_1' | |
- name: '[Current - 1.21.3] Build 🛎️' | |
run: | | |
mkdir target | |
cd 1_21_3 | |
./gradlew clean build publish -Dforce-hide-version-meta=1 | |
cp -rf target/* ../target/ | |
cd .. | |
env: | |
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
- name: '[Non-LTS - 1.21.1] Build 🛎️' | |
run: | | |
cd 1_21_1 | |
./gradlew clean build publish -Dforce-hide-version-meta=1 | |
cp -rf target/* ../target/ | |
cd .. | |
env: | |
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
- name: '[LTS - 1.20.1] Build 🛎️' | |
run: | | |
cd 1_20_1 | |
./gradlew clean build publish -Dforce-hide-version-meta=1 | |
cp -rf target/* ../target/ | |
cd .. | |
env: | |
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
- name: 'Publish Test Report 📊' | |
uses: mikepenz/action-junit-report@v5 | |
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.3 | |
fabric-1.21.3 | |
paper-1.21.1 | |
fabric-1.21.1 | |
paper-1.20.1 | |
fabric-1.20.1 | |
distro-groups: | | |
paper | |
fabric | |
paper | |
fabric | |
paper | |
fabric | |
distro-descriptions: | | |
Paper 1.21.3 | |
Fabric 1.21.3 | |
Paper 1.21.1 | |
Fabric 1.21.1 | |
Paper 1.20.1 | |
Fabric 1.20.1 | |
files: | | |
target/HuskSync-Paper-${{ github.event.release.tag_name }}+mc.1.21.3.jar | |
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.21.3.jar | |
target/HuskSync-Paper-${{ github.event.release.tag_name }}+mc.1.21.1.jar | |
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.21.1.jar | |
target/HuskSync-Paper-${{ github.event.release.tag_name }}+mc.1.20.1.jar | |
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.20.1.jar |