Files

40 lines
1.0 KiB
YAML

# Publishes org.taumc:moddev-gradle (and the plugin markers) to
# https://maven.taumc.org/releases on every push to tau.
#
# `mdg_version` in gradle.properties is set by hand: the version encodes which upstream MDG
# commit this fork is 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