mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-19 14:59:21 +00:00
[ci skip]: build 1.21.1 ver
This commit is contained in:
70
.github/workflows/ci_1.21.1.yml
vendored
Normal file
70
.github/workflows/ci_1.21.1.yml
vendored
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
name: CI Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ 'minecraft/1.21.1' ]
|
||||||
|
paths-ignore:
|
||||||
|
- 'docs/**'
|
||||||
|
- 'workflows/**'
|
||||||
|
- 'README.md'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
checks: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 'Build - 1.21.1'
|
||||||
|
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: 'Checkout for CI 🛎️'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: 'minecraft/1.21.1'
|
||||||
|
env:
|
||||||
|
SNAPSHOTS_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||||
|
SNAPSHOTS_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
|
- name: '[Current - 1.21.1] Build 🛎️'
|
||||||
|
run: |
|
||||||
|
./gradlew clean build publish
|
||||||
|
- name: 'Publish Test Report 📊'
|
||||||
|
uses: mikepenz/action-junit-report@v4
|
||||||
|
if: success() || failure() # Continue on failure
|
||||||
|
with:
|
||||||
|
report_paths: '**/build/test-results/test/TEST-*.xml'
|
||||||
|
- name: 'Fetch Version String 📝'
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=VERSION_NAME::$(./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')"
|
||||||
|
id: fetch-version
|
||||||
|
- name: 'Set Version Variable 📝'
|
||||||
|
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: 'husksync'
|
||||||
|
channel: 'alpha'
|
||||||
|
version: ${{ env.version_name }}
|
||||||
|
changelog: ${{ github.event.head_commit.message }}
|
||||||
|
distro-names: |
|
||||||
|
paper-1.21.1
|
||||||
|
fabric-1.21.1
|
||||||
|
distro-groups: |
|
||||||
|
paper
|
||||||
|
fabric
|
||||||
|
distro-descriptions: |
|
||||||
|
Paper 1.21.1
|
||||||
|
Fabric 1.21.1
|
||||||
|
files: |
|
||||||
|
target/HuskSync-Paper-${{ env.version_name }}+mc.1.21.1.jar
|
||||||
|
target/HuskSync-Fabric-${{ env.version_name }}+mc.1.21.1.jar
|
||||||
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -24,6 +24,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: '8.8'
|
gradle-version: '8.8'
|
||||||
- name: '[Current - 1.21.3] Checkout for CI 🛎️'
|
- 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
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: '1_21_1'
|
path: '1_21_1'
|
||||||
@@ -36,6 +40,13 @@ jobs:
|
|||||||
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||||
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
- name: '[Current - 1.21.3] Build 🛎️'
|
- 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 ..
|
||||||
|
- name: '[Non-LTS - 1.21.1] Build 🛎️'
|
||||||
run: |
|
run: |
|
||||||
mkdir target
|
mkdir target
|
||||||
cd 1_21_1
|
cd 1_21_1
|
||||||
@@ -64,6 +75,8 @@ jobs:
|
|||||||
distro-names: |
|
distro-names: |
|
||||||
paper-1.21.3
|
paper-1.21.3
|
||||||
fabric-1.21.3
|
fabric-1.21.3
|
||||||
|
paper-1.21.1
|
||||||
|
fabric-1.21.1
|
||||||
paper-1.20.1
|
paper-1.20.1
|
||||||
fabric-1.20.1
|
fabric-1.20.1
|
||||||
distro-groups: |
|
distro-groups: |
|
||||||
@@ -71,13 +84,19 @@ jobs:
|
|||||||
fabric
|
fabric
|
||||||
paper
|
paper
|
||||||
fabric
|
fabric
|
||||||
|
paper
|
||||||
|
fabric
|
||||||
distro-descriptions: |
|
distro-descriptions: |
|
||||||
Paper 1.21.3
|
Paper 1.21.3
|
||||||
Fabric 1.21.3
|
Fabric 1.21.3
|
||||||
|
Paper 1.21.1
|
||||||
|
Fabric 1.21.1
|
||||||
Paper 1.20.1
|
Paper 1.20.1
|
||||||
Fabric 1.20.1
|
Fabric 1.20.1
|
||||||
files: |
|
files: |
|
||||||
target/HuskSync-Paper-${{ github.event.release.tag_name }}+mc.1.21.3.jar
|
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-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-Paper-${{ github.event.release.tag_name }}+mc.1.20.1.jar
|
||||||
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.20.1.jar
|
target/HuskSync-Fabric-${{ github.event.release.tag_name }}+mc.1.20.1.jar
|
||||||
Reference in New Issue
Block a user