Skip to content

Merge pull request #694 from Crazy-Crew/update-version #37

Merge pull request #694 from Crazy-Crew/update-version

Merge pull request #694 from Crazy-Crew/update-version #37

Workflow file for this run

name: Publish
on:
push:
branches:
- main
- dev
workflow_dispatch:
inputs:
logLevel:
description: 'Log Level'
required: false
default: 'warning'
jobs:
publish:
runs-on: ubuntu-latest
if: github.repository_owner == 'Crazy-Crew'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
check-latest: true
- name: Gradle Properties Import.
shell: bash
run: cat gradle.properties >> $GITHUB_ENV
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Assemble
run: ./gradlew assemble --stacktrace
- name: Publish
env:
HANGAR_KEY: ${{ secrets.HANGAR_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./gradlew modrinth publishAllPublicationsToHangar --stacktrace