Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RafalWilinski/e1e2d83e613941399bac9104959242aa to your computer and use it in GitHub Desktop.
Save RafalWilinski/e1e2d83e613941399bac9104959242aa to your computer and use it in GitHub Desktop.
name: Build/release
on:
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 10
- name: Prepare for app notarization
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:
package_root: renderer
build_script_name: ci-prerelease
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
env:
# macOS notarization API key
API_KEY_ID: ${{ secrets.api_key_id }}
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
CI: false
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: dynobase
path: renderer/dist/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment