Skip to content

v1.0.12

v1.0.12 #17

Workflow file for this run

name: Publish
on:
push:
branches:
- release
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Publish to Modrinth/CurseForge
uses: Apehum/[email protected]
with:
modrinth-id: Kx9d4acU
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
changelog-file: changelog.md
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
files-secondary: build/libs/*-@(disabled).jar
loaders: |
fabric
forge
paper
spigot
velocity
bungeecord
game-versions: |
1.19.2
1.19.3
1.19.4
1.20
1.20.1
1.20.2
1.20.3
1.20.4
- name: Publish to GitHub
uses: Apehum/[email protected]
with:
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
files-secondary: build/libs/*-@(disabled).jar
github-token: ${{ secrets.GITHUB_TOKEN }}