This is an automated email from the ASF dual-hosted git repository.

piergiorgio pushed a commit to branch CONNECTORS-1754
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git


The following commit(s) were added to refs/heads/CONNECTORS-1754 by this push:
     new 926246a9c added release candidate GitHub workflow (CONNECTORS-1754)
926246a9c is described below

commit 926246a9ce16d31e394ba22a000840f81f2323c4
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Tue Mar 5 14:50:39 2024 +0100

    added release candidate GitHub workflow (CONNECTORS-1754)
---
 .github/workflows/create-release-candidate.yml | 84 +++++++++++++++++++++++++-
 1 file changed, 83 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/create-release-candidate.yml 
b/.github/workflows/create-release-candidate.yml
index c0a83766f..76e5d9b77 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -36,4 +36,86 @@ jobs:
       - name: Init Release Candidate workflow
         run: echo "Starting Apache ManifoldCF workflow for building ${{ 
github.events.input.releasecandidatetag }}"
         
-     
+      - uses: actions/[email protected]
+      - name: Set up OpenJDK 11 Temurin x64
+        uses: actions/[email protected]
+        with:
+          java-version: '11'
+          distribution: 'temurin'
+          architecture: x64
+          cache: maven
+      
+      - name: Get Maven POM version
+        id: mavenProjectVersion
+        run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q 
-DforceStdout)" >> $GITHUB_OUTPUT
+      
+      - name: Initialize mandatory git config
+        env:
+          GH_TOKEN: ${{ github.token }}
+        run: |
+          git config user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
+          git config user.email 
${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com
+      
+      - name: Create new release candidate branch
+        run: git branch ${{ steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }}
+      
+      - name: Update all the Maven modules with the new version
+        run: mvn versions:set -DnewVersion=${{ 
steps.mavenProjectVersion.outputs.version }} -DremoveSnapshot 
-DgenerateBackupPoms=false
+      
+      - name: Update Ant script with the new RC version
+        run: sed -i 's/${{ steps.mavenProjectVersion.outputs.version 
}}-dev/${{ steps.mavenProjectVersion.outputs.version }}/g' build.xml;
+      
+      - name: Update CHANGES.txt
+        run: sed -i 's/${{ steps.mavenProjectVersion.outputs.version 
}}-dev/Release ${{ steps.mavenProjectVersion.outputs.version }}/g' CHANGES.txt;
+      
+      - name: Ant Build
+        run: ant make-core-deps make-deps image
+      
+      - name: Maven Build
+        run: mvn clean install -DskipTests -DskipITs
+      
+      - name: RAT licence checks
+        run: mvn -pl . apache-rat:check
+      
+      - name: Generate RAT License Report
+        if: always()
+        run: |
+          echo -e "Printing RAT report\n"
+          cat target/rat.txt || true
+      
+      - name: Commit and Push
+        run: |
+          find . -name 'pom.xml' -exec git add {} \;
+          git add CHANGES.txt build.xml
+          git commit -am "${{ steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }} created"
+          git push
+            
+      - name: Upload artifacts - Binary - zip format
+        uses: actions/[email protected]
+        with:
+          name: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }}-bin.zip
+          path: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-bin.zip
+      
+      - name: Upload artifacts - Lib - tar.gz format
+        uses: actions/[email protected]
+        with:
+          name: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }}-lib.tar.gz
+          path: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-lib.tar.gz
+      
+      - name: Upload artifacts - Lib - zip format
+        uses: actions/[email protected]
+        with:
+          name: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }}-lib.zip
+          path: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-lib.zip
+      
+      - name: Upload artifacts - Source code - tar.gz format
+        uses: actions/[email protected]
+        with:
+          name: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }}-src.tar.gz
+          path: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-src-tar.gz
+      
+      - name: Upload artifacts - Source code - zip format
+        uses: actions/[email protected]
+        with:
+          name: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-${{ 
github.events.input.releasecandidatetag }}-src.zip
+          path: apache-manifoldcf-${{ 
steps.mavenProjectVersion.outputs.version }}-src-zip

Reply via email to