ci: publish Maven packages to Gitea registry on push to master

Lets Pathway (and other consumers) resolve dev.relism:flash from Gitea's
Maven registry instead of requiring a local `mvn install`. Every push
stamps all modules with a commit-scoped version (2.1.0-<short-sha>) before
deploying, since Gitea's registry won't let a build overwrite an existing
name+version.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Zakaria El Orche
2026-08-12 19:38:18 +00:00
co-authored by Claude Sonnet 5
parent 4032567d75
commit 5a16bc690c
2 changed files with 61 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!--
Used only by .gitea/workflows/publish-maven.yml (mvn -s .gitea/maven-settings.xml deploy).
Not used for local builds. The token is read from the GITEA_TOKEN env var the workflow
already exports (Gitea Actions' built-in per-job token, scoped to this repo/org — see
https://docs.gitea.com/usage/packages/maven#configuring-the-package-registry), never
written to disk.
-->
<servers>
<server>
<id>gitea</id>
<configuration>
<httpHeaders>
<property>
<name>Authorization</name>
<value>token ${env.GITEA_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>