File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 20
20
MAVEN_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
21
21
MAVEN_CENTRAL_USERNAME : ${{ secrets.OSS_SONATYPE_USERNAME }}
22
22
MAVEN_CENTRAL_PASSWORD : ${{ secrets.OSS_SONATYPE_PASSWORD }}
23
- MAVEN_CLI_OPTS : " -B -q -e -fae -V -DinstallAtEnd=true -U"
24
23
25
24
jobs :
26
25
pre_commit :
50
49
runs-on : ubuntu-latest
51
50
needs : [pre_commit]
52
51
if : " !contains(github.event.head_commit.message, '[skip tests]')"
52
+ env :
53
+ MAVEN_CLI_OPTS : >
54
+ -B -q -e -fae -V -DinstallAtEnd=true -U
53
55
steps :
54
56
- uses : actions/checkout@v3
55
57
-
uses :
Alfresco/alfresco-build-tools/.github/actions/[email protected]
@@ -156,12 +158,13 @@ jobs:
156
158
runs-on : ubuntu-latest
157
159
needs : [tests]
158
160
if : >
159
- !(failure() || cancelled()) &&
160
- github.event_name != 'pull_request'
161
+ contains(github.event.head_commit.message, '[publish]')
161
162
steps :
162
163
- uses : actions/checkout@v3
164
+ -
uses :
Alfresco/alfresco-build-tools/.github/actions/[email protected]
163
165
-
uses :
Alfresco/alfresco-build-tools/.github/actions/[email protected]
164
166
- name : " Build"
165
167
run : mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
166
168
- name : " Publish"
167
- run : mvn $MAVEN_CLI_OPTS deploy -DskipTests
169
+ timeout-minutes : ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
170
+ run : mvn deploy $MAVEN_CLI_OPTS -DskipTests
Original file line number Diff line number Diff line change 522
522
523
523
<distributionManagement >
524
524
<repository >
525
- <id >central-releases-staging </id >
526
- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2 </url >
525
+ <id >alfresco-public </id >
526
+ <url >https://artifacts.alfresco.com/nexus/content/groups/public </url >
527
527
</repository >
528
528
<snapshotRepository >
529
529
<id >alfresco-public-snapshots</id >
You can’t perform that action at this time.
0 commit comments