[Release] Forestry 2.1.2 #27
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 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 }} |