Skip to content

Release 1.5.19

Release 1.5.19 #38

Workflow file for this run

name: Build and upload jar as asset
on:
release:
types:
- released
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: build
- name: Hash jar
run: sha256sum build/libs/*[^-dev].jar
- name: Upload asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/*[^-dev].jar
tag: ${{ github.ref }}
file_glob: true