Skip to content

Fix publishing

Fix publishing #315

Workflow file for this run

name: Build
on:
push:
branches: ['*']
workflow_dispatch: {}
jobs:
build-fabric:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- 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 check
run: ./gradlew :fabric:build --stacktrace
- name: Archive development jars
uses: actions/upload-artifact@v4
with:
name: Development jars inside (fabric)
path: |
fabric/build/devlibs/*.jar
if-no-files-found: error
- name: Archive playable jar
uses: actions/upload-artifact@v4
with:
name: Playable mod jar inside (fabric)
path: |
fabric/build/libs/*.jar
if-no-files-found: error
# - name: Integration tests
# run: ./gradlew :fabric:runGameTestServer --stacktrace
- name: Publish
uses: Kir-Antipov/mc-publish@v3.3
if: "contains(github.event.head_commit.message, '[ci publish]')"
with:
version-type: beta
files: fabric/build/libs/!(*-@(sources|dev|dev-shadow|javadoc).jar)
github-token: ${{ secrets.GITHUB_TOKEN }}
github-commitish: ${{ github.sha }}
github-generate-changelog: true
changelog: https://github.com/Cadiboo/NoCubes/releases
# curseforge-id: 309664
# curseforge-token: "secrets.CURSEFORGE_TOKEN"
# modrinth-id: w3bbwFYU
# modrinth-token: "secrets.MODRINTH_TOKEN"