From 3249556fbbe75a977aaaefc5089711afd8a82202 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 16:43:38 -0700 Subject: [PATCH 1/7] add release dry run --- .github/workflows/dry-run.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/dry-run.yml diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml new file mode 100644 index 00000000..e49ea745 --- /dev/null +++ b/.github/workflows/dry-run.yml @@ -0,0 +1,40 @@ +name: Release Dry Run + +on: + push: + branches: + - ** + +jobs: + build-test: + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + # depending on the windows command (when we are ready to build for it), may have to check which os currently on + - name: Install nodejs dependencies + run: | + npm install + npm run web-install + npm run electron-install + shell: bash + - name: setup for codesigning (macos only) + if: ${{ runner.os == 'macOs' }} + uses: figleafteam/import-codesign-certs@v2 + with: + p12-file-base64: ${{ secrets.HBE_APPLE_CERTIFICATE_BASE64 }} + p12-password: ${{ secrets.HBE_APPLE_CERTIFICATE_PASS }} + - name: build acorn (and notarize it- macos only) + env: + APPLE_DEV_IDENTITY: ${{ secrets.APPLE_DEV_IDENTITY }} + APPLE_ID_EMAIL: ${{ secrets.APPLE_ID_EMAIL }} + APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} + DEBUG: electron-osx-sign*,electron-notarize* + run: | + npm run build + shell: bash From d8fb80219293c7f7ef04bb6b250f1f0fb5aa6a65 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 16:44:33 -0700 Subject: [PATCH 2/7] fix syntax --- .github/workflows/dry-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index e49ea745..45947982 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -3,7 +3,7 @@ name: Release Dry Run on: push: branches: - - ** + - '*' jobs: build-test: From 4b2ed01eeffb8e1d0b17c457d7610bfce574d323 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 16:48:45 -0700 Subject: [PATCH 3/7] try wget --- scripts/download-happs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/download-happs.sh b/scripts/download-happs.sh index ad5d5c96..5157df85 100644 --- a/scripts/download-happs.sh +++ b/scripts/download-happs.sh @@ -1,5 +1,5 @@ #!/bin/bash # bump this in tandem with bumping the INTEGRITY_VERSION_NUMBER -curl -sL --insecure https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/profiles.happ -o electron/binaries/profiles.happ -curl -sL --insecure https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/projects.happ -o electron/binaries/projects.happ \ No newline at end of file +wget https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/profiles.happ -O electron/binaries/profiles.happ +wget https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/projects.happ -O electron/binaries/projects.happ \ No newline at end of file From 6fa0b9f59c66a71820ff93aea30d180da20f9444 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 16:52:59 -0700 Subject: [PATCH 4/7] in case electron/binaries doesn't exist --- scripts/download-happs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/download-happs.sh b/scripts/download-happs.sh index 5157df85..8bc2e9b7 100644 --- a/scripts/download-happs.sh +++ b/scripts/download-happs.sh @@ -1,5 +1,6 @@ #!/bin/bash # bump this in tandem with bumping the INTEGRITY_VERSION_NUMBER +mkdir -p electron/binaries wget https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/profiles.happ -O electron/binaries/profiles.happ wget https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/projects.happ -O electron/binaries/projects.happ \ No newline at end of file From a96b1659b0e327d8ac7c4df9b310ad3428daf94d Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 16:58:48 -0700 Subject: [PATCH 5/7] install wget if windows --- .github/workflows/dry-run.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index 45947982..c30f4e24 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -16,7 +16,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - # depending on the windows command (when we are ready to build for it), may have to check which os currently on + - name: Windows only, install wget + if: ${{ runner.os == 'windows-latest' }} + run: | + choco install wget --no-progress - name: Install nodejs dependencies run: | npm install From a03d05a854252143fb20b084bf7e07f44f608a2a Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 17:01:02 -0700 Subject: [PATCH 6/7] fix check --- .github/workflows/dry-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index c30f4e24..2c9be6b3 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Windows only, install wget - if: ${{ runner.os == 'windows-latest' }} + if: ${{ runner.os == 'Windows' }} run: | choco install wget --no-progress - name: Install nodejs dependencies From 080306378c18dff2df733f5d0ab139d414e1a337 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Jun 2023 17:23:49 -0700 Subject: [PATCH 7/7] add to release flow --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13086d43..913e3658 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - # depending on the windows command (when we are ready to build for it), may have to check which os currently on + - name: Windows only, install wget + if: ${{ runner.os == 'Windows' }} + run: | + choco install wget --no-progress - name: Install nodejs dependencies run: | npm install