Skip to content

use FAPI mining level API #1170

use FAPI mining level API

use FAPI mining level API #1170

Workflow file for this run

name: build
on: [ pull_request, push, workflow_dispatch ]
jobs:
build:
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew buildOrPublish
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/
- name: publish to Modrinth and Curseforge
uses: Kir-Antipov/mc-publish@v3.2
with:
modrinth-id: tEJPA4Ty
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: true
curseforge-id: 696251
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
loaders: |
fabric
quilt
version-type: alpha
changelog: ${{ github.event.head_commit.message }}