Skip to content

Merge pull request #17 from ChiefArug/15-fix #64

Merge pull request #17 from ChiefArug/15-fix

Merge pull request #17 from ChiefArug/15-fix #64

Workflow file for this run

name: Build and Maven
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'gradle'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: ForgeArtifact
path: ./forge/build/libs/*.jar
- uses: actions/upload-artifact@v4
with:
name: NeoForgeArtifact
path: ./neoforge/build/libs/*.jar
- name: Publish to maven
if: contains(github.event.head_commit.message, '[push]') || contains(github.event.head_commit.message, '[build]')
env:
SAP_SECRET: ${{ secrets.SAP_SECRET }}
run: ./gradlew publish
- uses: actions/upload-artifact@v4
with:
name: FabricArtifact
path: ./fabric/build/libs/*.jar
- name: Publish To Curseforge
if: contains(github.event.head_commit.message, '[publish]') || contains(github.event.head_commit.message, '[curseforge]')
env:
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
run: ./gradlew curseforge
- name: Publish To Modrinth
if: contains(github.event.head_commit.message, '[publish]') || contains(github.event.head_commit.message, '[modrinth]')
env:
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
run: ./gradlew modrinth