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 dfba25252 Update create-release-candidate.yml (CONNECTORS-1754)
dfba25252 is described below
commit dfba25252b74d5d3f4737d2737239517f5c4b3c3
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Mon Jun 17 20:07:56 2024 +0200
Update create-release-candidate.yml (CONNECTORS-1754)
---
.github/workflows/create-release-candidate.yml | 103 ++++++++++++-------------
1 file changed, 51 insertions(+), 52 deletions(-)
diff --git a/.github/workflows/create-release-candidate.yml
b/.github/workflows/create-release-candidate.yml
index 154c95d13..da6d6d639 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -73,11 +73,6 @@ jobs:
git branch release-${{ steps.branchTag.outputs.tag }}
git push --set-upstream origin release-${{
steps.branchTag.outputs.tag }}
git checkout release-${{ steps.branchTag.outputs.tag }}
-
- #- name: Checkout the new branch ${{ steps.branchTag.outputs.tag }}
- # uses: actions/[email protected]
- # with:
- # ref: '${{ steps.branchTag.outputs.tag }}'
- name: Update all the Maven modules with the new version
run: mvn versions:set -DnewVersion=${{
steps.mavenProjectVersion.outputs.version }} -DremoveSnapshot
-DgenerateBackupPoms=false
@@ -132,36 +127,37 @@ jobs:
cp KEYS apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}.KEYS
cp CHANGES.txt apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}.CHANGES.txt
- #- name: Import GPG key
- # id: import_gpg
- # uses:
crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549
- # with:
- # gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- # passphrase: ${{ secrets.GPG_PASSPHRASE }}
-
- #- name: Generate file hashes
- # run: |
- # echo "$GPG_PRIVATE_KEY" | gpg --batch --import --passphrase
"$GPG_PASSPHRASE"
- # gpg --armor --output apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.zip.asc --detach-sig
apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.zip
- # gpg --armor --output apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.tar.gz.asc --detach-sig
apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-src.tar.gz
- # gpg --armor --output apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.zip.asc --detach-sig
apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.zip
- # gpg --armor --output apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.tar.gz.asc --detach-sig
apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-lib.tar.gz
- # gpg --armor --output apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.asc --detach-sig
apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-bin.zip
- # gpg --armor --output apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.tar.gz.asc --detach-sig
apache-manifoldcf-${{ steps.artifactVersion.outputs.version }}-bin.tar.gz
-
- # gpg --print-md MD5 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.zip > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.zip.md5
- # gpg --print-md MD5 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.tar.gz > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.tar.gz.md5
- # gpg --print-md MD5 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.zip > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.zip.md5
- # gpg --print-md MD5 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.tar.gz > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.tar.gz.md5
- # gpg --print-md MD5 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.md5
- # gpg --print-md MD5 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.tar.gz > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.tar.gz.md5
-
- # gpg --print-md SHA512 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.zip > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.zip.sha512
- # gpg --print-md SHA512 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.tar.gz > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.tar.gz.sha512
- # gpg --print-md SHA512 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.zip > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.zip.sha512
- # gpg --print-md SHA512 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.tar.gz > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-lib.tar.gz.sha512
- # gpg --print-md SHA512 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.sha512
- # gpg --print-md SHA512 apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.tar.gz > apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.tar.gz.sha512
+ - name: Upload artifacts - KEYS - text format
+ uses: actions/[email protected]
+ with:
+ name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}.KEYS
+ path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}.KEYS
+
+ - name: Upload Release Candidate Asset - KEYS
+ 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 }}.KEYS
+ asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}.KEYS
+ asset_content_type: text/plain
+
+ - name: Upload artifacts - CHANGES
+ uses: actions/[email protected]
+ with:
+ name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}.CHANGES.txt
+ path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}.CHANGES.txt
+
+ - name: Upload Release Candidate Asset - CHANGES
+ 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 }}.CHANGES.txt
+ asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}.CHANGES.txt
+ asset_content_type: text/plain
- name: Upload artifacts - Binary - zip format
uses: actions/[email protected]
@@ -169,12 +165,6 @@ jobs:
name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}-bin.zip
path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}-bin.zip
- #- name: Upload artifacts - Binary - asc format
- # uses: actions/[email protected]
- # with:
- # name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}-bin.zip.asc
- # path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}-bin.zip.asc
-
- name: Upload Release Candidate Asset - Binary - zip format
uses: actions/[email protected]
env:
@@ -185,15 +175,21 @@ jobs:
asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip
asset_content_type: application/zip
- #- name: Upload Release Candidate Asset - Binary - asc format
- # 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.asc
- # asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.asc
- # asset_content_type: application/pgp-signature
+ - name: Upload artifacts - Binary - tar.gz format
+ uses: actions/[email protected]
+ with:
+ name: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}-bin.tar.gz
+ path: apache-manifoldcf-${{ steps.artifactVersion.outputs.version
}}-bin.tar.gz
+
+ - name: Upload Release Candidate Asset - Binary - tar.gz format
+ 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.tar.gz
+ asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.tar.gz
+ asset_content_type: application/gzip
- name: Upload artifacts - Lib - tar.gz format
uses: actions/[email protected]
@@ -273,10 +269,13 @@ jobs:
- name: Docker meta
id: meta
- uses: docker/metadata-action@v4
+ uses: docker/[email protected]
with:
images: apache/manifoldcf
+ - name: Update Docker Image tag
+ run: sed -i 's/SNAPSHOT/${{ github.event.inputs.releasecandidatetag
}}/g' Dockerfile;
+
- name: Build and push ManifoldCF Docker Image
uses: docker/[email protected]
with:
@@ -284,5 +283,5 @@ jobs:
file: Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
- tags: ${{ steps.meta.outputs.tags }}
+ tags: apache/manifoldcf:latest,apache/manifoldcf:${{
steps.branchTag.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}