From 0399e2ae06c276ed0b497468265c4f42ac0ea072 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Fri, 22 Nov 2024 16:22:01 -0500 Subject: [PATCH] Try Windows test signing with SignPath Signed-off-by: Geoff Hutchison --- .github/workflows/build_cmake.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 26d90cbf89..e2f4492e5c 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -283,6 +283,7 @@ jobs: [[ ! "${GITHUB_REF}" =~ "tags" ]] && export SNAPSHOT_DATE=`date -j "+%d-%m-%y"` cpack ${{ matrix.config.cpack_flags }} working-directory: ${{ runner.workspace }}/build/avogadroapp + continue-on-error: true env: P12_PASSWORD: ${{ secrets.P12_PASSWORD }} CODESIGN_IDENTITY: ${{ secrets.CODESIGN_ID }} @@ -328,17 +329,30 @@ jobs: CODESIGN_IDENTITY: ${{ secrets.CODESIGN_ID }} continue-on-error: true - - name: Setup tmate session - if: ${{ failure() }} - uses: mxschmitt/action-tmate@v3 - - name: Upload if: matrix.config.artifact != 0 + id: upload-artifact uses: actions/upload-artifact@v4 with: path: ${{ runner.workspace }}/build/avogadroapp/Avogadro*.* name: ${{ matrix.config.artifact }} + - name: Sign Windows artifact + if: matrix.config.os == 'windows-latest' + uses: signpath/github-action-submit-signing-request@v1 + with: + api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' + organization-id: 'Avogadro Project [OSS]' + project-slug: 'avogadrolibs' + signing-policy-slug: 'test-signing' + github-artifact-id: '${{ steps.upload-artifact.outputs.artifact-id }}' + wait-for-completion: true + output-artifact-directory: '${{ runner.workspace }}/build/avogadroapp' + + - name: Setup tmate session + if: matrix.config.os == 'windows-latest' + uses: mxschmitt/action-tmate@v3 + - name: Cleanup if: ${{ always() }} # To ensure this step runs even when earlier steps fail shell: bash