File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ jobs:
3232 run : |
3333 sudo apt install gnupg2
3434 sudo apt install maven
35- gpg --import <(printenv secret_key | base64 --decode)
35+ gpg --batch -- import <(printenv secret_key | base64 --decode)
3636 touch settings.xml && chmod 0600 settings.xml && printenv settings_xml > settings.xml
3737 echo "sources_jar=$(find . -type f -name "*-sources.jar")" >> $GITHUB_ENV
3838 echo "javadoc_jar=$(find . -type f -name "*-javadoc.jar")" >> $GITHUB_ENV
39- echo "lib_jar=$(find . -type f -name "* .[0-9]. jar" )" >> $GITHUB_ENV
39+ echo "lib_jar=$(find . -type f -regextype posix-egrep -regex '.*/[^/]+-[0-9]+\ .[0-9]+\.[0-9]+(-beta-[0-9]+)?\. jar' )" >> $GITHUB_ENV
4040 echo "pom_file=$(find . -type f -name "*.pom")" >> $GITHUB_ENV
4141
4242 - name : Upload
5050 mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=$pom_file -Dfile=$lib_jar -Dpackaging=jar -s ./settings.xml &&
5151 mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=$pom_file -Dfile=$javadoc_jar -Dpackaging=jar -Dclassifier=javadoc -s ./settings.xml &&
5252 mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=$pom_file -Dfile=$sources_jar -Dpackaging=jar -Dclassifier=sources -s ./settings.xml;
53- } || { rm settings.xml; exit 1}
53+ } || { rm settings.xml; exit 1; }
5454 rm settings.xml
You can’t perform that action at this time.
0 commit comments