Skip to content

Commit

Permalink
publish 1.12.1
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
  • Loading branch information
havetisyan committed Oct 8, 2024
1 parent a3583ee commit 2ecd97e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ossrh-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish Athenz packages to Maven Central

on:
push:
tags:
- 'v1.12.*'
branches:
- '1.12.1'

env:
GOLANG_VERSION: 1.22
Expand Down
2 changes: 1 addition & 1 deletion actions/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function deployProject ()
then
echo "Package $1 already published. Skipping..."
else
until mvn -B deploy -P ossrh -Dmaven.test.skip=true --projects $1
until mvn -B deploy -Dmaven.test.skip=true --projects $1 --settings actions/settings/settings-publish.xml
do
[[ counter -eq $max_retry ]] && echo "Failed to deploy package $1" && exit 1
counter=$(( $counter + 1 ))
Expand Down
9 changes: 9 additions & 0 deletions actions/settings/settings-publish.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<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">
<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_TOKEN}</password>
</server>
</servers>
</settings>

0 comments on commit 2ecd97e

Please sign in to comment.