generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4014a3a
commit 6ee2983
Showing
4 changed files
with
63 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Publish a commit version to Modrinth, Curseforge and Github. | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to Run On' | ||
required: true | ||
default: 'mc-1.20-kotlin' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
|
||
- name: Fetch mod properties | ||
uses: BrycensRanch/read-properties-action@v1 | ||
id: properties | ||
with: | ||
file: gradle.properties | ||
all: true | ||
|
||
- name: Check for Kotlin | ||
id: kotlin_check | ||
run: | | ||
if [[ -n "${{ steps.properties.outputs.kotlin_version }}" ]]; then | ||
echo "::set-output name=kotlin::[Kotlin]" | ||
else | ||
echo "::set-output name=kotlin::" | ||
fi | ||
- name: Build | ||
run: ./gradlew clean build | ||
|
||
- name: Publish mod | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: yjpXhps7 | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
modrinth-unfeature-mode: subset | ||
|
||
curseforge-id: 369122 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
name: "[${{ steps.properties.outputs.archives_minecraft_version }}]${{ steps.kotlin_check.outputs.kotlin }} Better Enchanted Books ${{ steps.properties.outputs.mod_version }}" |
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
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