Taterzens 1.12.0 (Minecraft 1.20.4) #51
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
# Taken from Leuokcyte (https://github.com/NucleoidMC/leukocyte/blob/main/.github/workflows/release.yml) | |
name: Fabric Release | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/loom-cache | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle- | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew :build --stacktrace | |
- name: Upload GitHub release | |
uses: AButler/[email protected] | |
with: | |
files: 'build/libs/*.jar' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish with Gradle | |
run: ./gradlew modrinth curseforge --stacktrace | |
env: | |
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
CHANGELOG: ${{ github.event.release.body }} | |