Skip to content

Commit

Permalink
Fix checksum files artifact paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Antunes committed Oct 7, 2024
1 parent e13a8c8 commit f47079c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .ci/jenkins/release-jobs/Jenkinsfile.online-editor
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ pipeline {
env.STUNNER_EDITORS_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-stunner-editors.zip"
sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
cd ${WORSKPACE}/kie-tools/packages/online-editor/dist && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.ONLINE_EDITOR_RELEASE_ZIP_FILE}" .
cd ${WORSKPACE}/kie-tools/packages/stunner-editors/dist && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.STUNNER_EDITORS_RELEASE_ZIP_FILE}" .
cd "${WORKSPACE}/kie-tools/packages/online-editor/dist" && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.ONLINE_EDITOR_RELEASE_ZIP_FILE}" .
cd "${WORKSPACE}/kie-tools/packages/stunner-editors/dist" && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.STUNNER_EDITORS_RELEASE_ZIP_FILE}" .
""".trim()
}
}
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/release_build_extended_services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,30 +405,31 @@ jobs:
extended_services_sign_and_deploy:
needs: [extended_services_build]
runs-on: ubuntu-latest
env:
RELEASE_CANDIDATE_ARTIFACTS_DIR: ${{ github.workspace }}/extended-services-release-candidate-artifacts
steps:
- name: Import GPG key
if: github.event_name != 'pull_request'
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549
with:
gpg_private_key: ${{ secrets.GPG_KEY }}

- name: Create release artifacts directories
- name: Create release artifacts directory
shell: bash
run: |
mkdir ./extended-services-release-artifacts
mkdir ./extended-services-final-release-artifacts
mkdir $RELEASE_CANDIDATE_ARTIFACTS_DIR
- name: Retrieve MacOS artifacts
uses: actions/download-artifact@v4
with:
name: extended-services-macos-artifacts
path: ./extended-services-release-artifacts
path: $RELEASE_CANDIDATE_ARTIFACTS_DIR

- name: Retrieve Windows artifacts
uses: actions/download-artifact@v4
with:
name: extended-services-windows-artifacts
path: ./extended-services-release-artifacts
path: $RELEASE_CANDIDATE_ARTIFACTS_DIR

- name: "Zip artifacts"
id: zip_artifacts
Expand All @@ -437,13 +438,15 @@ jobs:
env:
RELEASE_CANDIDATE_VERSION: ${{ inputs.release_candidate_version }}
run: |
MACOS_ARTIFACT_ZIP_FILE="${{ github.workspace }}/extended-services-final-release-artifacts/incubator-kie-$RELEASE_CANDIDATE_VERSION-sandbox-extended-services-macOS-x86.zip"
WINDOWS_ARTIFACT_ZIP_FILE="${{ github.workspace }}/extended-services-final-release-artifacts/incubator-kie-$RELEASE_CANDIDATE_VERSION-sandbox-extended-services-windows-x86.zip"
MACOS_ARTIFACT_ZIP_FILE="incubator-kie-$RELEASE_CANDIDATE_VERSION-sandbox-extended-services-macOS-x86.zip"
WINDOWS_ARTIFACT_ZIP_FILE="incubator-kie-$RELEASE_CANDIDATE_VERSION-sandbox-extended-services-windows-x86.zip"
echo "MACOS_ARTIFACT_ZIP_FILE=$MACOS_ARTIFACT_ZIP_FILE" >> "$GITHUB_OUTPUT"
echo "WINDOWS_ARTIFACT_ZIP_FILE=$WINDOWS_ARTIFACT_ZIP_FILE" >> "$GITHUB_OUTPUT"
cd ./extended-services-release-artifacts
zip $MACOS_ARTIFACT_ZIP_FILE ./Kogito.dmg
zip $WINDOWS_ARTIFACT_ZIP_FILE ./kie_sandbox_extended_services.exe
cd $RELEASE_CANDIDATE_ARTIFACTS_DIR
zip $RELEASE_CANDIDATE_ARTIFACTS_DIR/$MACOS_ARTIFACT_ZIP_FILE ./Kogito.dmg
zip $RELEASE_CANDIDATE_ARTIFACTS_DIR/$WINDOWS_ARTIFACT_ZIP_FILE ./kie_sandbox_extended_services.exe
rm -f ./Kogito.dmg
rm -f ./kie_sandbox_extended_services.exe
- name: "Sign artifacts"
if: ${{ !inputs.dry_run }}
Expand All @@ -452,6 +455,7 @@ jobs:
MACOS_ARTIFACT_ZIP_FILE: ${{ steps.zip_artifacts.outputs.MACOS_ARTIFACT_ZIP_FILE }}
WINDOWS_ARTIFACT_ZIP_FILE: ${{ steps.zip_artifacts.outputs.WINDOWS_ARTIFACT_ZIP_FILE }}
run: |
cd $RELEASE_CANDIDATE_ARTIFACTS_DIR
gpg --no-tty --batch --sign --pinentry-mode loopback --output $MACOS_ARTIFACT_ZIP_FILE.asc --detach-sig $MACOS_ARTIFACT_ZIP_FILE
shasum -a 512 $MACOS_ARTIFACT_ZIP_FILE > $MACOS_ARTIFACT_ZIP_FILE.sha512
gpg --no-tty --batch --sign --pinentry-mode loopback --output $WINDOWS_ARTIFACT_ZIP_FILE.asc --detach-sig $WINDOWS_ARTIFACT_ZIP_FILE
Expand All @@ -466,7 +470,7 @@ jobs:
RELEASE_CANDIDATE_VERSION: ${{ inputs.release_candidate_version }}
run: |
svn co --depth=empty https://dist.apache.org/repos/dist/dev/incubator/kie/$RELEASE_CANDIDATE_VERSION/ svn-kie
cp ./extended-services-final-release-artifacts/* svn-kie
cp $RELEASE_CANDIDATE_ARTIFACTS_DIR/* svn-kie
cd svn-kie
svn add . --force
svn ci --non-interactive --no-auth-cache --username $SVN_USERNAME --password "$SVN_PASSWORD" -m "Apache KIE $RELEASE_CANDIDATE_VERSION Extended Services artifacts"
Expand Down

0 comments on commit f47079c

Please sign in to comment.