Skip to content

Publish to CurseForge #31

Publish to CurseForge

Publish to CurseForge #31

name: Publish to CurseForge
on:
workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- uses: gradle/[email protected]
with:
gradle-version: 8.10
- name: Publish build
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
run: |
if [ "${{ github.event.sender.login }}" = "OscarPayn" ] || [ "${{ github.event.sender.login }}" = "bconlon1" ]; then
gradle build
gradle :fabric:curseforge
gradle :neoforge:curseforge
fi