Skip to content

Publish action

Publish action #5

Workflow file for this run

name: Publish action
on:
workflow_dispatch:
branches: [ "main" ]
inputs:
version:
description: 'Mod Version'
required: true
type: string
env:
MINECRAFT_VERSION: 1.19.2
JAVA_VERSION: 17
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk 17
uses: actions/setup-java@v1
with:
java-version: "17"
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Publish Minecraft Mods Forge
uses: Kir-Antipov/[email protected]
with:
curseforge-id: 401955
modrinth-id: TKB6INcv
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files-primary: build/libs/!(*-@(dev|sources)).jar
files-secondary: build/libs/*-@(dev|sources).jar
version-type: release
loaders: forge
name: ars_nouveau-${{ env.MINECRAFT_VERSION }}-${{ inputs.version }}
version: ${{ inputs.version }}
changelog: ""