Skip to content

Version 6.1.1 (1.20.1) #18

Version 6.1.1 (1.20.1)

Version 6.1.1 (1.20.1) #18

Workflow file for this run

name: Build & Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 20
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Update mod version
uses: christian-draeger/[email protected]
with:
path: "gradle.properties"
property: "mod_version"
value: ${{ github.event.release.tag_name }}
- name: Build and upload
uses: gradle/gradle-build-action@v2
with:
arguments: build curseforge modrinth publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
CI: true
- name: Upload fabric jar to github releases
uses: svenstaro/upload-release-action@v2
with:
file: fabric/build/libs/brazier-fabric-${{ github.event.release.tag_name }}.jar
- name: Upload forge jar to github releases
uses: svenstaro/upload-release-action@v2
with:
file: forge/build/libs/brazier-forge-${{ github.event.release.tag_name }}.jar