Skip to content

test on github

test on github #18

Workflow file for this run

name: Build & Release
on:
push:
tags: [ '*' ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build
- name: Release
uses: HSGamer/action-mcreleaser@main
with:
files: |
build/libs/MoreFoWorld.jar
build/libs/MoreFoWorld-*.jar
env:
DOCKER_PLATFORMS: github,hangar
DESCRIPTION: ${{ steps.changelog.outputs.changelog }}
GAME_VERSIONS: "1.20.4"
GITHUB_TOKEN: ${{ github.token }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_PROJECT: saPdoNQI
MODRINTH_LOADERS: folia
HANGAR_KEY: ${{ secrets.HANGAR_KEY }}
HANGAR_PROJECT: MoreFoWorld
HANGAR_PLATFORM: paper