Skip to content

[Release] Forestry 2.1.2 #27

[Release] Forestry 2.1.2

[Release] Forestry 2.1.2 #27

Workflow file for this run

name: Release for 1.20.1
on:
push:
branches: [ '1.20.1' ]
workflow_dispatch:
jobs:
release:
name: Publish release JAR for Forestry
runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, '[Release]')"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Upload to CurseForge
run: ./gradlew curseforge
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
- name: Upload to Modrinth
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}