Skip to content

Publish action

Publish action #28

Workflow file for this run

name: Publish action
on:
create:
tag:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: "21"
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: Publish Minecraft Mods Forge
uses: Kir-Antipov/mc-publish@v3.3.0
with:
curseforge-id: 291936
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-id: rEuzehyH
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: |
forge/build/libs/*-neoforge.jar
forge/build/libs/!(*-neoforge).jar
version-type: beta
loaders: neoforge
game-versions: 1.21
java: 21
name: ""
changelog: "https://github.com/Buuz135/FindMe/commits/1.21"
dependencies: |
architectury-api | depends | *
- name: Publish Minecraft Mods Fabric
uses: Kir-Antipov/mc-publish@v3.3.0
with:
curseforge-id: 291936
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
modrinth-id: rEuzehyH
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
files: |
fabric/build/libs/*-fabric.jar
fabric/build/libs/!(*-fabric).jar
version-type: beta
loaders: fabric
game-versions: 1.21
java: 21
name: ""
dependencies: |
architectury-api | depends | *
changelog: "https://github.com/Buuz135/FindMe/commits/1.21"