fix stack mob #41
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: Publish Jar | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Release git tag | |
type: string | |
required: true | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
pull-requests: write | |
repository-projects: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
server-id: lagassist | |
settings-path: ${{ github.workspace }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 | |
- name: Build with Gradle Legacy | |
run: MC_VERSION=legacy ./gradlew build | |
- name: Build with Gradle 1.20.4 | |
run: MC_VERSION=1.20.4 ./gradlew build | |
- name: Build with Gradle 1.20.6 | |
run: MC_VERSION=1.20.6 ./gradlew build | |
- name: Build with Gradle Latest | |
run: ./gradlew build | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-jar | |
path: ./build/libs/* | |
- name: Publish release | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ./build/libs/* | |
tag: ${{ inputs.tag }} | |
name: LagAssist ${{ inputs.tag }} | |
allowUpdates: true | |
artifactErrorsFailBuild: false | |
prerelease: true | |
token: ${{ secrets.GITHUB_TOKEN }} |