Skip to content

Garden - vBX3.4.5

Garden - vBX3.4.5 #1

Workflow file for this run

name: 'Publish to Hangar & Modrinth with Gradle'
on:
release:
branches: [master]
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish to Hangar with Gradle
uses: gradle/gradle-build-action@v3
env:
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
with:
arguments: build publishPluginPublicationToHangar --stacktrace
- name: Publish to Modrinth with Gradle
uses: gradle/gradle-build-action@v3
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
with:
arguments: build modrinth --stacktrace