Skip to content

github action for first time contributors when PR merged (#1186) #55

github action for first time contributors when PR merged (#1186)

github action for first time contributors when PR merged (#1186) #55

Workflow file for this run

name: Release JAR
on:
push:
tags:
- "v*.*.*"
defaults:
run:
shell: bash
env:
JAVA_VERSION: 21
jobs:
release:
name: Build and release
runs-on: ubuntu-latest
steps:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- uses: actions/checkout@v4
- name: Build shadow jar
run: ./gradlew shadowJar
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: application/build/libs/TJ-Bot.jar