Skip to content

small push, attempt at fixing issues. #14

small push, attempt at fixing issues.

small push, attempt at fixing issues. #14

Workflow file for this run

name: Publish to Hangar
on:
push:
branches:
- 2.x
jobs:
publish:
if: github.repository_owner == 'flytegg'
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
check-latest: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish
env:
HANGAR_API_KEY: ${{ secrets.HANGAR_API_KEY }}
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
run: ./gradlew build publishAllPublicationsToHangar --stacktrace