Use Java 21 for workflows #74
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: release-artifacts | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 21 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Upload assets to CurseForge | ||
run: ./gradlew build | ||
env: | ||
BUILD_RELEASE: ${{ github.event.prerelease == false }} | ||
- name: Upload assets to GitHub | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'build/libs/*.jar;!build/libs/*-dev.jar;LICENSE' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |