# 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@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: # publish.sh derives the version from the v* tag on HEAD fetch-depth: 0 - uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1 with: distribution: temurin java-version: "25" # The tests run without the registry credentials; only the publish step gets them. - name: Test run: ci/publish.sh test - name: Publish env: ORG_GRADLE_PROJECT_giteaUsername: ${{ secrets.REGISTRY_USER }} ORG_GRADLE_PROJECT_giteaPassword: ${{ secrets.REGISTRY_TOKEN }} run: ci/publish.sh publish