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 eab7f92ba fix for the release candidate GitHub workflow 
(CONNECTORS-1754)
eab7f92ba is described below

commit eab7f92ba7e11c2deebe6dc65c4b5c2156331a19
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Tue Mar 26 14:59:13 2024 +0100

    fix for the release candidate GitHub workflow (CONNECTORS-1754)
---
 .github/workflows/create-release-candidate.yml | 72 +++++++++++++++++++++++++-
 1 file changed, 70 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/create-release-candidate.yml 
b/.github/workflows/create-release-candidate.yml
index 52cc83d5b..49a93f6fa 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -108,6 +108,19 @@ jobs:
           git commit -am "New branch for release candidate ${{ 
steps.branchTag.outputs.tag }} created"
           git push
       
+      - name: Create Release Candidate
+        id: create_release_candidate
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          tag_name: ${{ steps.branchTag.outputs.tag }}
+          release_name: Release Candidate ${{ steps.branchTag.outputs.tag }}
+          body: |
+            Release Candidate ${{ steps.branchTag.outputs.tag }}
+          draft: false
+          prerelease: true
+      
       - name: Set Artifact version output
         id: artifactVersion
         run: echo "version=${{ steps.branchVersion.outputs.version }}dev" >> 
$GITHUB_OUTPUT
@@ -118,27 +131,82 @@ jobs:
           name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-bin.zip
           path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-bin.zip
       
+      - name: Upload Release Candidate Asset - Binary - zip format
+        id: upload-release-candidate-assets 
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
+          asset_path: ./apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-bin.zip
+          asset_name: apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-bin.zip
+          asset_content_type: application/zip
+      
       - name: Upload artifacts - Lib - tar.gz format
         uses: actions/[email protected]
         with:
           name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-lib.tar.gz
           path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-lib.tar.gz
       
+      - name: Upload Release Candidate Asset - Lib - tar.gz format
+        id: upload-release-candidate-assets 
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
+          asset_path: ./apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-lib.tar.gz
+          asset_name: apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-lib.tar.gz
+          asset_content_type: application/gzip
+      
       - name: Upload artifacts - Lib - zip format
         uses: actions/[email protected]
         with:
           name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-lib.zip
           path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-lib.zip
       
+      - name: Upload Release Candidate Asset - Lib - zip format
+        id: upload-release-candidate-assets 
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
+          asset_path: ./apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-lib.zip
+          asset_name: apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-lib.zip
+          asset_content_type: application/zip
+      
       - name: Upload artifacts - Source code - tar.gz format
         uses: actions/[email protected]
         with:
           name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-src.tar.gz
-          path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-src-tar.gz
+          path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-src.tar.gz
+      
+      - name: Upload Release Candidate Asset - Source code - tar.gz format
+        id: upload-release-candidate-assets 
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
+          asset_path: ./apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-src.tar.gz
+          asset_name: apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-src.tar.gz
+          asset_content_type: application/gzip
       
       - name: Upload artifacts - Source code - zip format
         uses: actions/[email protected]
         with:
           name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-src.zip
-          path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-src-zip
+          path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version 
}}-src.zip
+      
+      - name: Upload Release Candidate Asset - Source code - zip format
+        id: upload-release-candidate-assets 
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
+          asset_path: ./apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-src.zip
+          asset_name: apache-manifoldcf-${{ 
steps.artifactVersion.outputs.version }}-src.zip
+          asset_content_type: application/zip
       

Reply via email to