Skip to content

Commit 65da793

Browse files
Merge pull request #292 from lightningrodlabs/release-dry-run
add release dry run
2 parents 2cd5d69 + 0803063 commit 65da793

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

.github/workflows/dry-run.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release Dry Run
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
build-test:
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
- macos-latest
15+
- windows-latest
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Windows only, install wget
20+
if: ${{ runner.os == 'Windows' }}
21+
run: |
22+
choco install wget --no-progress
23+
- name: Install nodejs dependencies
24+
run: |
25+
npm install
26+
npm run web-install
27+
npm run electron-install
28+
shell: bash
29+
- name: setup for codesigning (macos only)
30+
if: ${{ runner.os == 'macOs' }}
31+
uses: figleafteam/import-codesign-certs@v2
32+
with:
33+
p12-file-base64: ${{ secrets.HBE_APPLE_CERTIFICATE_BASE64 }}
34+
p12-password: ${{ secrets.HBE_APPLE_CERTIFICATE_PASS }}
35+
- name: build acorn (and notarize it- macos only)
36+
env:
37+
APPLE_DEV_IDENTITY: ${{ secrets.APPLE_DEV_IDENTITY }}
38+
APPLE_ID_EMAIL: ${{ secrets.APPLE_ID_EMAIL }}
39+
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
40+
DEBUG: electron-osx-sign*,electron-notarize*
41+
run: |
42+
npm run build
43+
shell: bash

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- uses: actions/checkout@v3
30-
# depending on the windows command (when we are ready to build for it), may have to check which os currently on
30+
- name: Windows only, install wget
31+
if: ${{ runner.os == 'Windows' }}
32+
run: |
33+
choco install wget --no-progress
3134
- name: Install nodejs dependencies
3235
run: |
3336
npm install

scripts/download-happs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

33
# bump this in tandem with bumping the INTEGRITY_VERSION_NUMBER
4-
curl -sL --insecure https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/profiles.happ -o electron/binaries/profiles.happ
5-
curl -sL --insecure https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/projects.happ -o electron/binaries/projects.happ
4+
mkdir -p electron/binaries
5+
wget https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/profiles.happ -O electron/binaries/profiles.happ
6+
wget https://github.com/lightningrodlabs/acorn-happ/releases/download/v6.0.0/projects.happ -O electron/binaries/projects.happ

0 commit comments

Comments
 (0)