Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: add release action

thecodrr25da2c4a0ddf
diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.yml
index dfa9dcb49..1b50f23db 100644
--- a/apps/web/.github/workflows/release.yml
+++ b/apps/web/.github/workflows/release.yml
@@ -6,6 +6,7 @@ jobs:
release:
runs-on: ${{ matrix.os }}
+ # Platforms to build on/for
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
@@ -16,20 +17,34 @@ jobs:
with:
persist-credentials: false
- - name: Use Node.js 12.x
- uses: actions/[email protected]
+ - name: Use Node.js 15.x
+ uses: actions/setup-node@latest
with:
- node-version: 12.x
+ node-version: 15.x
- run: npm install
- run: npm build
- - name: Release Electron app
+ - name: Prepare for app notarization (macOS)
+ if: startsWith(matrix.os, 'macos')
+ # Import Apple API key for app notarization on macOS
+ run: |
+ mkdir -p ~/private_keys/
+ echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
+ - name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
skip_build: true
+ # macOS code signing certificate
+ mac_certs: ${{ secrets.mac_certs }}
+ mac_certs_password: ${{ secrets.mac_certs_password }}
+
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: true
+ env:
+ # macOS notarization API key
+ API_KEY_ID: ${{ secrets.api_key_id }}
+ API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}