@@ -125,27 +125,16 @@ jobs:
125125 release-activiti :
126126 runs-on : ubuntu-latest
127127 needs : [load-release-info]
128- outputs :
129- staging-repository : ${{ steps.staging.outputs.staging-repository }}
130128 steps :
131- - name : create-staging-repository
132- id : staging
133- uses : Alfresco/alfresco-build-tools/.github/actions/nexus-create-staging@209bb4275688720e13dc0703dbd17826bf677c5c # v6.1.0
134- with :
135- staging-description : Activiti staging ${{ needs.load-release-info.outputs.version }}
136- nexus-profile-id : ${{ secrets.NEXUS_ACTIVITI7_PROFILE_ID }}
137- nexus-username : ${{ secrets.NEXUS_USERNAME }}
138- nexus-password : ${{ secrets.NEXUS_PASSWORD }}
139-
140129 - name : Checkout activiti-scripts
141130 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
142131
143- - uses : Alfresco/alfresco-build-tools/.github/actions/maven-release@209bb4275688720e13dc0703dbd17826bf677c5c # v6.1 .0
132+ - uses : Alfresco/alfresco-build-tools/.github/actions/maven-release@a4013b7dfd8453ee94ec5d4eb8cb51d74654f770 # v7.0 .0
144133 with :
145134 repo : Activiti/Activiti
146135 base-ref : ${{ needs.load-release-info.outputs.activiti-tag }}
147136 release-version : ${{ needs.load-release-info.outputs.version }}
148- staging-repository : ${{ steps.staging.outputs.staging-repository }}
137+ staging-repository : activiti-staging
149138 git-username : ${{ secrets.BOT_GITHUB_USERNAME }}
150139 github-token : ${{ secrets.BOT_GITHUB_TOKEN }}
151140 gpg-passphrase : " ${{ secrets.GPG_PASSPHRASE }}"
@@ -165,13 +154,13 @@ jobs:
165154 - name : Checkout activiti-scripts
166155 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
167156
168- - uses : Alfresco/alfresco-build-tools/.github/actions/maven-release@209bb4275688720e13dc0703dbd17826bf677c5c # v6.1 .0
157+ - uses : Alfresco/alfresco-build-tools/.github/actions/maven-release@a4013b7dfd8453ee94ec5d4eb8cb51d74654f770 # v7.0 .0
169158 with :
170159 repo : Activiti/activiti-cloud
171160 base-ref : ${{ needs.load-release-info.outputs.activiti-cloud-tag }}
172161 extra-replacements : activiti.version=${{ needs.load-release-info.outputs.activiti-tag }}
173162 release-version : ${{ needs.load-release-info.outputs.version }}
174- staging-repository : ${{ needs.release- activiti.outputs.staging-repository }}
163+ staging-repository : activiti-staging
175164 git-username : ${{ secrets.BOT_GITHUB_USERNAME }}
176165 github-token : ${{ secrets.BOT_GITHUB_TOKEN }}
177166 gpg-passphrase : " ${{ secrets.GPG_PASSPHRASE }}"
@@ -348,23 +337,11 @@ jobs:
348337 with :
349338 tag : ${{ env.RELEASE_VERSION }}
350339
351- - name : Update staging repository
352- env :
353- STAGING_REPOSITORY_FILE : maven-config/staging-repository.txt
354- STAGING_REPOSITORY_ID : ${{ needs.release-activiti.outputs.staging-repository }}
355- run : |
356- echo "$STAGING_REPOSITORY_ID" > "$STAGING_REPOSITORY_FILE"
357- yq -i e '.release.stagingRepository = env(STAGING_REPOSITORY_ID)' release.yaml
358-
359- - uses : Alfresco/alfresco-build-tools/.github/actions/git-commit-changes@209bb4275688720e13dc0703dbd17826bf677c5c # v6.1.0
360- with :
361- username : ${{ secrets.BOT_GITHUB_USERNAME }}
362- add-options : maven-config/staging-repository.txt release.yaml
363- commit-message : Add staging repository for ${{env.RELEASE_VERSION}}
364-
365340 - name : Create tag
366341 if : steps.check-tag.outputs.exists == 'false'
367342 run : |
343+ git config --global user.name "${{ secrets.BOT_GITHUB_USERNAME }}"
344+ git config --global user.email "${{ secrets.BOT_GITHUB_USERNAME }}@users.noreply.github.com"
368345 git tag "$RELEASE_VERSION" -m "Release version $RELEASE_VERSION"
369346 git push origin "$RELEASE_VERSION"
370347
@@ -377,21 +354,31 @@ jobs:
377354 - create-scripts-tag
378355
379356 steps :
380- - uses : Alfresco/alfresco-build-tools/.github/actions/nexus-close-staging@209bb4275688720e13dc0703dbd17826bf677c5c # v6.1.0
381- if : needs.load-release-info.outputs.mock != 'true'
357+ - name : Move artifacts to destination repository for activiti
358+ id : move-artifacts-activiti
359+ if : ${{ needs.load-release-info.outputs.mock != 'true' }}
360+ uses : Alfresco/alfresco-build-tools/.github/actions/nexus-move-artifacts@a4013b7dfd8453ee94ec5d4eb8cb51d74654f770 # v7.0.0
382361 with :
383- version : ${{ needs.load-release-info.outputs.version }}
384- staging-repository : ${{ needs.release-activiti.outputs.staging-repository}}
385362 nexus-username : ${{ secrets.NEXUS_USERNAME }}
386363 nexus-password : ${{ secrets.NEXUS_PASSWORD }}
364+ nexus-url : ${{ vars.NEXUS_URL }}
365+ destination-repository : activiti-releases
366+ source-repository : activiti-staging
367+ group : org.activiti
368+ version : ${{ needs.load-release-info.outputs.version }}
387369
388- - uses : Alfresco/alfresco-build-tools/.github/actions/nexus-release-staging@209bb4275688720e13dc0703dbd17826bf677c5c # v6.1.0
389- if : needs.load-release-info.outputs.mock != 'true'
370+ - name : Move artifacts to destination repository for activiti-cloud
371+ id : move-artifacts-activiti-cloud
372+ if : ${{ needs.load-release-info.outputs.mock != 'true' }}
373+ uses : Alfresco/alfresco-build-tools/.github/actions/nexus-move-artifacts@a4013b7dfd8453ee94ec5d4eb8cb51d74654f770 # v7.0.0
390374 with :
391- version : ${{ needs.load-release-info.outputs.version }}
392- staging-repository : ${{ needs.release-activiti.outputs.staging-repository}}
393375 nexus-username : ${{ secrets.NEXUS_USERNAME }}
394376 nexus-password : ${{ secrets.NEXUS_PASSWORD }}
377+ nexus-url : ${{ vars.NEXUS_URL }}
378+ destination-repository : activiti-releases
379+ source-repository : activiti-staging
380+ group : org.activiti.cloud
381+ version : ${{ needs.load-release-info.outputs.version }}
395382
396383 create-gh-releases :
397384 runs-on : ubuntu-latest
0 commit comments