Skip to content

publish-desktop

publish-desktop #28

name: publish-desktop
on: workflow_dispatch
jobs:
build-and-publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, windows-2019, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: yarn --immutable
- name: Run linter
run: yarn lint
# TODO re-enable
# - name: Run test
# shell: bash
# run: yarn test
- name: Build with webpack for electron
shell: bash
run: ./scripts/build.sh -n Mainnet -e
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
WALLET_CONNECT_KEY: ${{ secrets.WALLET_CONNECT_KEY }}
- name: Build on Mac
run: yarn electron-builder --mac --publish always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.MAC_CSC_LINK2 }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
if: runner.os == 'macOS'
- name: Build on Windows
run: yarn electron-builder --win --publish always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK2 }}
# CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
if: runner.os == 'Windows'
- name: Install deps for Linux
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
if: runner.os == 'Linux'
- name: Build on Linux
run: yarn electron-builder --linux --publish always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: runner.os == 'Linux'