From b44ee17791957c1f598314a6fd20d9023f1952e5 Mon Sep 17 00:00:00 2001 From: Paul Yushkevich Date: Tue, 8 Oct 2024 12:25:15 -0400 Subject: [PATCH 1/4] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93a1cf20..4f556f77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -261,7 +261,7 @@ jobs: security create-keychain -p "" build.keychain security default-keychain -s build.keychain security unlock-keychain -p "" build.keychain - security import Utilities/MacOS/apple_developer_for_github.p12 -k build.keychain -P "$CODESIGN_P12_KEY" -T /usr/bin/codesign + security import ../Utilities/MacOS/apple_developer_for_github.p12 -k build.keychain -P "$CODESIGN_P12_KEY" -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain echo $NOTARIZE_KEY | base64 -d > notarize_key xcrun notarytool store-credentials -k notarize_key -d $NOTARIZE_KEY_ID -i $NOTARIZE_ISSUER itksnap_notarize From 676ba1e1c6ae9b486cb7490a80aa77f61ed5ebed Mon Sep 17 00:00:00 2001 From: Paul Yushkevich Date: Tue, 8 Oct 2024 12:59:13 -0400 Subject: [PATCH 2/4] Update build.yml --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f556f77..b7fa7ea2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -295,6 +295,22 @@ jobs: with: name: ${{steps.package_itksnap.outputs.package_file}} path: ${{github.workspace}}/itksnap/build/${{steps.package_itksnap.outputs.package_file}} + + - name: Upload to sourceforge + working-directory: ${{github.workspace}}/itksnap/build + shell: bash + env: + PRIVATE_KEY: ${{ secrets.SNAP_SOURCEFORGE_PRIVATE_KEY }} + PUBLIC_KEY: ${{ secrets.SNAP_SOURCEFORGE_PUBLIC_KEY }} + USER: ${{ secrets.SNAP_SOURCEFORGE_PUBLIC_USERNAME }} + run: | + mkdir -p $HOME/.ssh && chmod 700 $HOME/.ssh + echo $PUBLIC_KEY | base64 -d > $HOME/.ssh/sfkey.pub && chmod 600 $HOME/.ssh/sfkey.pub + echo $PRIVATE_KEY | base64 -d > $HOME/.ssh/sfkey && chmod 600 $HOME/.ssh/sfkey + cmake -DSCP_ARGUMENTS=-visfkey -DSCP_USERNAME=$USER . + cmake --build . --target itksnap_upload_experimental + + From 9e131d67855e484023db1dc4bb14b96f9449ce5e Mon Sep 17 00:00:00 2001 From: Paul Yushkevich Date: Tue, 8 Oct 2024 13:02:51 -0400 Subject: [PATCH 3/4] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7fa7ea2..bc922fd5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -264,7 +264,7 @@ jobs: security import ../Utilities/MacOS/apple_developer_for_github.p12 -k build.keychain -P "$CODESIGN_P12_KEY" -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain echo $NOTARIZE_KEY | base64 -d > notarize_key - xcrun notarytool store-credentials -k notarize_key -d $NOTARIZE_KEY_ID -i $NOTARIZE_ISSUER itksnap_notarize + xcrun notarytool store-credentials -k notarize_key -d $NOTARIZE_KEY_ID -i $NOTARIZE_ISSUER --keychain /Users/runner/Library/Keychains/build.keychain-db itksnap_notarize rm -rf notarize_key cmake -DSNAP_MACOS_NOTARYTOOL_PROFILE=itksnap_notarize -DSNAP_MACOSX_CODESIGN_CERT=$CODESIGN_CERT . From aee2cd037e3715ee3069a76857bf61f488b9ee48 Mon Sep 17 00:00:00 2001 From: Paul Yushkevich Date: Tue, 8 Oct 2024 13:44:05 -0400 Subject: [PATCH 4/4] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc922fd5..6b4ff394 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -266,7 +266,7 @@ jobs: echo $NOTARIZE_KEY | base64 -d > notarize_key xcrun notarytool store-credentials -k notarize_key -d $NOTARIZE_KEY_ID -i $NOTARIZE_ISSUER --keychain /Users/runner/Library/Keychains/build.keychain-db itksnap_notarize rm -rf notarize_key - cmake -DSNAP_MACOS_NOTARYTOOL_PROFILE=itksnap_notarize -DSNAP_MACOSX_CODESIGN_CERT=$CODESIGN_CERT . + cmake -DSNAP_MACOS_NOTARYTOOL_PROFILE=itksnap_notarize -DSNAP_MACOS_KEYCHAIN=/Users/runner/Library/Keychains/build.keychain-db -DSNAP_MACOSX_CODESIGN_CERT=$CODESIGN_CERT . - name: Setup tmate session uses: mxschmitt/action-tmate@v3