Skip to content

Switch to websockets #363

Switch to websockets

Switch to websockets #363

Workflow file for this run

name: "Build Mod"
on:
push:
paths:
- "mapsync-mod/**/*"
pull_request:
paths:
- "mapsync-mod/**/*"
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- name: "Set up JDK 21"
uses: "actions/setup-java@v5"
with:
java-version: "21"
distribution: "adopt"
- name: "Compile mod"
run: "./gradlew build"
working-directory: "./mapsync-mod"
- name: "Upload Build"
uses: "actions/upload-artifact@v7"
with:
name: "Fabric"
path: "mapsync-mod/dist/*.jar"
- name: "Release Tag"
if: "startsWith(github.ref, 'refs/tags/v')"
uses: "softprops/action-gh-release@v2"
with:
prerelease: true
fail_on_unmatched_files: true
files: |
mapsync-mod/dist/*.jar
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"