bundle-desktop #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bundle-desktop | |
on: | |
push: | |
branches: | |
- staging | |
- production | |
- desktop | |
workflow_dispatch: | |
jobs: | |
test-and-build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
check-latest: true | |
- 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 never | |
env: | |
CSC_LINK: ${{ secrets.MAC_CSC_LINK2 }} | |
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | |
if: runner.os == 'macOS' | |
- name: Build on Windows | |
run: yarn electron-builder --win --publish never | |
env: | |
CSC_LINK: ${{ secrets.MAC_CSC_LINK }} | |
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_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 never | |
if: runner.os == 'Linux' | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: celowallet-artifacts | |
path: | | |
dist-electron/*-mac*.dmg | |
dist-electron/*-mac*.zip | |
dist-electron/*-linux*.AppImage | |
dist-electron/*-win*.exe |