Files
embeddedt e02a98993a
publish / publish (push) Successful in 1m51s
Update .github/workflows/publish.yml
2026-09-17 10:48:08 -04:00

40 lines
1.1 KiB
YAML

# Publishes org.taumc.jst:* to https://maven.taumc.org/releases on every push to main.
#
# Unlike most Tau components this fork does not derive its version from git - `jst_version`
# in gradle.properties is set by hand (see gradle/taumc.gradle), because the version encodes
# which upstream JST commit we are rebased onto. Bump the `-tau.N` counter when publishing a
# change consumers should pick up, and the base when rebasing onto upstream; pushes that
# don't touch it redeploy the same coordinates.
name: publish
on:
push:
branches:
- tau
workflow_dispatch:
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Build artifacts
run: ./gradlew build
- name: Publish artifacts
run: ./gradlew publish