removed unused and commented out stuff #10
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: Build JAR for release | |
on: | |
push: | |
branches: [ main, jar_release_gh_action ] | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Gradle build | |
run: ./gradlew build --no-daemon | |
- name: Check if JAR exists | |
run: ls -l build/libs/ | |
- name: Upload JAR release asset | |
uses: softprops/action-gh-release@v2 | |
# if: startsWith(github.ref, 'refs/heads/main') | |
with: | |
tag_name: ${{ env.VERSION }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true | |
files: | | |
build/libs/*.jar |