Files
ZomboidForge/.gitea/workflows/publish.yml
T

33 lines
1002 B
YAML

# Publishes the mod API, the mod tools, and the Gradle plugin to the Gitea Maven registry
# (https://git.security-command.org/api/packages/overlord/maven) for every release tag.
# Pre-release tags (containing "-") are tested but not published (see ci/publish.sh).
# Requires the repository secrets REGISTRY_USER and REGISTRY_TOKEN (a token with package
# write access), the same as the image release.
name: publish
on:
push:
tags:
- "v*"
jobs:
maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# publish.sh derives the version from the v* tag on HEAD
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "25"
- name: Test and publish
env:
ORG_GRADLE_PROJECT_giteaUsername: ${{ secrets.REGISTRY_USER }}
ORG_GRADLE_PROJECT_giteaPassword: ${{ secrets.REGISTRY_TOKEN }}
PUBLISH: "true"
run: ci/publish.sh