Skip to content

first attempt at boosting xp gains from non xp orb #45

first attempt at boosting xp gains from non xp orb

first attempt at boosting xp gains from non xp orb #45

Workflow file for this run

name: Create Plugin.jar
on:
push:
branches: [ "main", "1.19.4" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Fetch Project
uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: maven
- name: Build and Package Plugin
run: |
artifactPath="$(pwd)/target"
artifactName="$(mvn help:evaluate -Dexpression=project.build.finalName -q -DforceStdout)"
git_hash=$(git rev-parse --short "$GITHUB_SHA")
echo "artifactPath=${artifactPath}" >> $GITHUB_ENV
echo "artifactName=${artifactName}" >> $GITHUB_ENV
echo git_hash=${git_hash} >> $GITHUB_ENV
mvn clean package
mv "${artifactPath}/${artifactName}.jar" "${artifactPath}/${artifactName}-${git_hash}.jar"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifactName }}-${{ env.git_hash }}.jar
path: ${{ env.artifactPath }}/${{ env.artifactName }}-${{ env.git_hash }}.jar