mc1.8.9-0.6.6 #1
Workflow file for this run
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
# Used when a release is pushed to GitHub | |
# This does not make use of any caching as to ensure a clean build | |
name: build-release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-read-only: true | |
- name: Execute Gradle build | |
run: ./gradlew build -Pbuild.release=true | |
- name: Upload assets to GitHub | |
uses: AButler/[email protected] | |
with: | |
files: 'build/mods/*.jar' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |