Skip to content

Bug fixes.

Bug fixes. #235

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
MODRINTH_API_TOKEN: ${{ secrets.MODRINTH_API_TOKEN }}
BUILD_NUMBER: ${{ github.run_number }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to Modrinth
run: ./gradlew modrinth --stacktrace
- name: Publish to Hangar
run: ./gradlew publishPluginPublicationToHangar --stacktrace