-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: account for differences in commit version names
(cherry picked from commit 2d56484)
- Loading branch information
1 parent
95f4782
commit b9b510f
Showing
5 changed files
with
83 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI Tests | ||
|
||
on: | ||
push: | ||
branches: [ 'minecraft/1.20.1' ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'workflows/**' | ||
- 'README.md' | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
|
||
jobs: | ||
build: | ||
name: 'Build - 1.20.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.20.1' | ||
env: | ||
SNAPSHOTS_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
SNAPSHOTS_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
- name: '[Current - 1.20.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.20.1 | ||
fabric-1.20.1 | ||
distro-groups: | | ||
paper | ||
fabric | ||
distro-descriptions: | | ||
Paper 1.20.1 | ||
Fabric 1.20.1 | ||
files: | | ||
target/HuskSync-Paper-${{ env.version_name }}+mc.1.20.1.jar | ||
target/HuskSync-Fabric-${{ env.version_name }}+mc.1.20.1.jar |
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
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
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
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