Skip to content

1.20.2/.3/.5 support #13

1.20.2/.3/.5 support

1.20.2/.3/.5 support #13

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Build LimboHub
run: ./gradlew build
- name: Upload LimboHub
uses: actions/[email protected]
with:
name: LimboHub
path: "build/libs/limbohub*.jar"
- uses: dev-drprasad/[email protected]
if: ${{ github.event_name == 'push' }}
continue-on-error: true
with:
delete_release: true
tag_name: dev-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Find git version
id: git-version
run: echo "id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Find correct JAR
if: ${{ github.event_name == 'push' }}
id: find-jar
run: |
output="$(find build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
echo "::set-output name=jarname::$output"
- name: Release the build
if: ${{ github.event_name == 'push' }}
uses: ncipollo/release-action@v1
with:
artifacts: build/libs/${{ steps.find-jar.outputs.jarname }}
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: Dev-build ${{ steps.git-version.outputs.id }}
tag: dev-build