Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Publish Mod

Publish Mod #49

Workflow file for this run

name: Publish Mod
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Resources
uses: actions/checkout@v4
- name: Checkout M2 Repo
uses: actions/checkout@v4
with:
repository: 'BookkeepersMC/m2'
path: './m2/'
ref: 'master'
token: ${{ secrets.GIT_PAT }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build and Publish
run: ./gradlew build publishMods publish --stacktrace
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit artifacts to m2 repo
uses: EndBug/[email protected]
with:
add: './net/'
author_name: CrypticVerse
cwd: "./m2/"
message: "Publish Better Biomes"