fix keep alive handling v2 #31
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: Java CI with Gradle | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 21 | |
- name: Build LimboAPI | |
run: ./gradlew build | |
- name: Upload LimboAPI | |
uses: actions/[email protected] | |
with: | |
name: LimboAPI | |
path: "*/build/libs/*.jar" | |
- uses: dev-drprasad/[email protected] | |
if: ${{ github.event_name == 'push' }} | |
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 plugin/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: plugin/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 | |
- name: Upload to Modrinth | |
if: ${{ github.event_name == 'push' }} | |
uses: RubixDev/[email protected] | |
with: | |
token: ${{ secrets.MODRINTH_TOKEN }} | |
file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }} | |
name: Dev-build ${{ steps.git-version.outputs.id }} | |
version: ${{ steps.git-version.outputs.id }} | |
changelog: ${{ join(github.event.commits.*.message, '\n') }} | |
game_versions: 1.7.2 | |
release_type: beta | |
loaders: velocity | |
featured: false | |
project_id: TZOteSf2 |