This is an automated email from the ASF dual-hosted git repository.
piergiorgio pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git
The following commit(s) were added to refs/heads/trunk by this push:
new 48bbbc27e Update publish-maven-release.yml (CONNECTORS-1754)
48bbbc27e is described below
commit 48bbbc27ed7124838cfc4ae503b809ca0d17b357
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Thu Jun 20 11:26:39 2024 +0200
Update publish-maven-release.yml (CONNECTORS-1754)
---
.github/workflows/publish-maven-release.yml | 91 ++++++++++++++++++++++++++---
1 file changed, 84 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/publish-maven-release.yml
b/.github/workflows/publish-maven-release.yml
index f65414fc5..87e2b517d 100644
--- a/.github/workflows/publish-maven-release.yml
+++ b/.github/workflows/publish-maven-release.yml
@@ -22,15 +22,54 @@ run-name: ${{ github.actor }} is publishing release
artifacts
on:
workflow_dispatch:
+ inputs:
+ release:
+ type: choice
+ description: Select the ManifoldCF release
+ options:
+ - release-2.26 #Java 11
+ - release-2.25
+ - release-2.24
+ - release-2.23
+ - release-2.22
+ - release-2.21
+ - release-2.20
+ - release-2.19
+ - release-2.18
+ - release-2.17
+ - release-2.16
+ - release-2.15
+ - release-2.14
+ - release-2.13
+ - release-2.12
+ - release-2.11
+ - release-2.10
+ - release-2.9
+ - release-2.8
+ - release-2.7 #Java 1.8
+ - release-2.6
+ - release-2.5
+ - release-2.4
+ - release-2.3
+ - release-2.2
+ - release-2.1
+ - release-2.0 #Java 1.7
+ - release-1.9
+ - release-1.8
+ - release-1.2 #Java 1.6
+ - release-1.1
+ - release-1.0 #Java 1.5
jobs:
deployReleaseMavenArtifacts:
if: github.repository == 'apache/manifoldcf'
- name: "Deploy Apache ManifoldCF Snapshot"
+ name: "Deploy Apache ManifoldCF release artifacts"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected]
+ with:
+ ref: ${{ github.event.inputs.release }}
- name: Set up Java
uses: actions/[email protected]
@@ -42,15 +81,53 @@ jobs:
server-id: apache.releases.https
server-username: NEXUS_USER
server-password: NEXUS_PW
-
+ settings-path: ${{ github.workspace
}}/.github/asf-deploy-settings.xml
+
- name: Ant Build
- run: ant make-core-deps make-deps image
+ env:
+ RELEASE: ${{ inputs.release }}
+ run: |
+ if [[ $RELEASE == 'release-2.26' ]]; then
+ sed -i -e 's/<?xml version=\"1\.0\" encoding=\"UTF-8\"?>/ /g'
connectors/csv/pom.xml
+ sed -i -e
's/https\:\/\/maven.nuxeo.org\/nexus\/content\/repositories\/public-releases/https\:\/\/packages.nuxeo.com\/repository\/maven-public-archives/g'
build.xml
+ sed -i -e
's/https\:\/\/maven.nuxeo.org\/nexus\/content\/repositories\/public-releases\//https\:\/\/packages.nuxeo.com\/repository\/maven-public-archives/g'
connectors/nuxeo/pom.xml
+ sed -i -e
's/<\/dependencies>/<dependency><groupId>org.apache.hadoop<\/groupId><artifactId>hadoop-annotations<\/artifactId><version>\${hadoop.version}<\/version><exclusions><exclusion><groupId>jdk.tools<\/groupId><artifactId>jdk.tools<\/artifactId><\/exclusion><\/exclusions><\/dependency><\/dependencies>/g'
connectors/hdfs/pom.xml
+ fi
+ ant make-core-deps make-deps image
- name: Maven Build
- run: mvn clean install -B -DskipTests -DskipITs
+ run: mvn clean install -B -DskipTests -DskipITs -Papache-release
- name: Deploy
- run: mvn deploy -B -DskipTests -DskipITs -Dmaven.javadoc.skip=true
env:
- NEXUS_USER: ${{ secrets.NEXUS_USER }}
- NEXUS_PW: ${{ secrets.NEXUS_PW }}
+ NEXUS_USER: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
+ NEXUS_PW: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
+ MAVEN_SETTINGS: ${{ github.workspace
}}/.github/asf-deploy-settings.xml
+ MAVEN_USERNAME: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
+ MAVEN_GPG_PASSPHRASE: ""
+ #run: mvn deploy -B -e -q -DskipTests -DskipITs
-DrepositoryId=apache.releases.https -Papache-release
+ run: |
+ mvn -B -e -q org.sonatype.plugins:nexus-staging-maven-plugin:deploy \
+ -DskipTests \
+ -DskipITs \
+ -Dcargo-build.profile=release \
+ -Dcargo-build.features=services-all \
+ -DserverId=apache.releases.https \
+ -DnexusUrl=https://repository.apache.org
+
+ - name: Deploy local staged artifacts
+ if: ${{ github.event_name != 'pull_request' }}
+ run: |
+ ./mvn org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged \
+ -DskipStagingRepositoryClose=true \
+ -DserverId=apache.releases.https \
+ -DnexusUrl=https://repository.apache.org
+ env:
+ NEXUS_USER: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
+ NEXUS_PW: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
+ MAVEN_SETTINGS: ${{ github.workspace
}}/.github/asf-deploy-settings.xml
+ MAVEN_USERNAME: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
+ MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
+ MAVEN_GPG_PASSPHRASE: ""
+