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

Update gradle.properties #4

Update gradle.properties

Update gradle.properties #4

name: 1.16 Auto Build Release Publish
on:
push:
branches:
- 'exp-1.16'
paths:
- 'gradle.properties'
jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run the Gradle package task
uses: gradle/gradle-build-action@v2
with:
arguments: build publish
- name: Get file name
id: var
run: |
MESSAGE=$(ls build/libs/* | grep sources.jar -v)
echo file_path=$MESSAGE >> $GITHUB_OUTPUT
- name: Upload to CurseForge
uses: itsmeow/curseforge-upload@v3
with:
token: ${{ secrets.CURSEFORGE_TOKEN }}
project_id: 604054
game_endpoint: minecraft
file_path: ${{ steps.var.outputs.file_path }}
changelog: See recent commits [here](https://github.com/Low-Drag-MC/Multiblocked/commits/${{ github.sha }}). This is only marked as a beta release so CurseForge shows it on the front page.
changelog_type: markdown
# 1.12.2, Java 8
game_versions: "Minecraft 1.16:1.16.5,Java 8,Forge"
release_type: beta
relations: ldlib:requiredDependency,geckolib:optionalDependency,jei:optionalDependency