Skip to content

Merge pull request #28 from cqb13/dependabot/github_actions/actions/c… #22

Merge pull request #28 from cqb13/dependabot/github_actions/actions/c…

Merge pull request #28 from cqb13/dependabot/github_actions/actions/c… #22

Workflow file for this run

name: Java CI with Gradle
concurrency:
group: "build-1.20.1"
cancel-in-progress: true
on:
push:
branches: [ master ]
paths-ignore:
- '*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- name: Set up JDK 17
uses: actions/setup-java@v3.11.0
with:
java-version: 17
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Remove *-dev.jar
run: rm ./build/libs/*-dev.jar || true
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "1.20.1-build-${{ github.run_number }}"
prerelease: false
title: "1.20.1 Build ${{ github.run_number }}"
files: |
./build/libs/*.jar