Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdivitotawela committed May 14, 2024
1 parent d41c24c commit ec93033
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/actions/central-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ runs:
echo ${{ inputs.gpg-base64-key }} | base64 -d > ./private.key
gpg --import --passphrase ${{ inputs.gpg-passphrase }} --batch --yes ./private.key
rm -f ./private.key
gpg --list-keys
- name: Prepare artifacts
shell: bash
run: |
mkdir publish && cd publish
mkdir $GITHUB_WORKSPACE/publish && cd $GITHUB_WORKSPACE/publish
PKG_FOLDERS="$(echo $GROUP_ID | sed 's/\./ /g') $ARTIFACT_ID $VERSION"
dest="."
Expand All @@ -45,7 +44,18 @@ runs:
done
echo $dest && mkdir -p $dest && tree .
cp target/${ARTIFACT_ID}-${VERSION}.jar ${dest}/
cp target/${ARTIFACT_ID}-${VERSION}-javadoc.jar ${dest}/
cp target/${ARTIFACT_ID}-${VERSION}-sources.jar ${dest}/
cp $GITHUB_WORKSPACE/target/${ARTIFACT_ID}-${VERSION}.jar ${dest}/
cp $GITHUB_WORKSPACE/target/${ARTIFACT_ID}-${VERSION}-javadoc.jar ${dest}/
cp $GITHUB_WORKSPACE/target/${ARTIFACT_ID}-${VERSION}-sources.jar ${dest}/
cd $GITHUB_WORKSPACE/publish/${dest}/
for f in `find . -type f | grep -v ".asc$" | grep -v ".md5$" | grep -v ".sha1$"`
do
fname=$(basename $f)
echo "Generate has and signature for $fname"
gpg -ab --passphrase ${{ inputs.gpg-passphrase }} --batch --yes $fname
md5sum $fname | cut -d ' ' -f 1 > $fname.md5
sha1sum $fname | cut -d ' ' -f 1 > $fname.sha1
done
tree

0 comments on commit ec93033

Please sign in to comment.