diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index 1f02c0c322..9871c39e9e 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -462,20 +462,19 @@ jobs: - name: Set up Wix toolkit run: echo "${WIX}bin" >> $GITHUB_PATH shell: bash - - name: Download Windows Intaller Zip + - name: Download Windows Installer Zip uses: actions/download-artifact@v4 with: name: Windows Installer ZIP - name: Create windows-msi id: run_installers_msi run: | - move installers\windows .\ - ren windows w - cd w - .\build-ballerina-windows-x64.bat --version ${{ needs.ubuntu-build.outputs.project-version }} --path .\..\ + move installers\windows .\..\..\ + cd ..\..\windows + .\build-ballerina-windows-x64.bat --version ${{ needs.ubuntu-build.outputs.project-version }} --path .\..\ballerina-distribution\ballerina-distribution - name: Generate Hashes run: | - openssl dgst -sha256 -out ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi.sha256 w\target\msi\ballerina-*-windows-x64.msi + openssl dgst -sha256 -out ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi.sha256 D:\a\windows\target\msi\ballerina-*-windows-x64.msi - name: Archive Windows msi Hashes uses: actions/upload-artifact@v4 with: @@ -485,9 +484,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: Windows Installer msi - path: w\target\msi\ballerina-*-windows-x64.msi + path: D:\a\windows\target\msi\ballerina-*-windows-x64.msi - name: Install Ballerina msi - run: msiexec /i w\target\msi\ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi /quiet /qr + run: msiexec /i D:\a\windows\target\msi\ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi /quiet /qr shell: cmd - name: Update Installer Test Configs run: | diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 66977cb498..0469663c2a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -719,19 +719,18 @@ jobs: - name: Create windows-msi Installer id: run_installers_msi run: | - move installers\windows .\ - ren windows w - cd w - .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ + move installers\windows .\..\..\ + cd ..\..\windows + .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ballerina-distribution\ballerina-distribution - name: Sign the Windows installer run: | - cosign sign-blob w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --output-certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --output-signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --yes + cosign sign-blob D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --output-certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --output-signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --yes - name: Verify the Windows installer run: | - cosign verify-blob w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --certificate-identity=https://github.com/ballerina-platform/ballerina-distribution/.github/workflows/publish-release.yml@${{ github.ref }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com + cosign verify-blob D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --certificate-identity=https://github.com/ballerina-platform/ballerina-distribution/.github/workflows/publish-release.yml@${{ github.ref }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com - name: Generate Hashes run: | - openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 D:\a\windows\target\msi\ballerina-*-windows-x64.msi - name: Upload Windows msi Hashes uses: actions/upload-release-asset@v1 env: @@ -748,7 +747,7 @@ jobs: with: upload_url: ${{ needs.publish-release.outputs.upload-asset-url }} asset_name: ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi - asset_path: w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + asset_path: D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi asset_content_type: application/octet-stream - name: Upload Windows installer's Certificate uses: actions/upload-release-asset@v1 @@ -769,7 +768,7 @@ jobs: asset_path: ./ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig asset_content_type: application/octet-stream - name: Install Ballerina msi - run: msiexec /i w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi /quiet /qr + run: msiexec /i D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi /quiet /qr shell: cmd - name: Update Installer Test Configs run: | diff --git a/.github/workflows/publish_release_bi.yml b/.github/workflows/publish_release_bi.yml index 4dd139f24a..a8c761aae7 100644 --- a/.github/workflows/publish_release_bi.yml +++ b/.github/workflows/publish_release_bi.yml @@ -461,13 +461,12 @@ jobs: - name: Create windows-msi Installer id: run_installers_msi run: | - move installers\windows .\ - ren windows w - cd w - .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ + move installers\windows .\..\..\ + cd ..\..\windows + .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ballerina-distribution\ballerina-distribution - name: Generate Hashes run: | - openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi - name: Upload Windows msi Hashes uses: actions/upload-release-asset@v1 env: @@ -484,7 +483,7 @@ jobs: with: upload_url: ${{ needs.publish-release.outputs.upload-asset-url }} asset_name: ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi - asset_path: w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + asset_path: D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi asset_content_type: application/octet-stream # - name: Install Ballerina msi # run: msiexec /i w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi /quiet /qr