This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
Publish Mod #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Mod | |
on: | |
workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Resources | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Build and Publish | |
run: ./gradlew clean build modrinth curseforge --stacktrace | |
env: | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | |
MAVEN_URL: ${{ secrets.MAVEN_URL }} |