Skip to content

Version 0.0.2

Version 0.0.2 #2

Workflow file for this run

name: Build & Publish
on:
push:
tags:
- v*.*.*
env:
JAVA_VERSION: 21
BUILD_RELEASE: "true"
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
AYAKA_MAVEN_TOKEN: ${{ secrets.AYAKA_MAVEN_TOKEN }}
REPO_URL: "${{ github.server_url }}/${{ github.repository }}"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Environment Variables
run: env
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Build and Publish
run: ./gradlew clean buildAndGather publishAll --warning-mode all --stacktrace
- name: Publish to Github
uses: Kira-NT/mc-publish@v3.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}