v2.0.0-alpha.24 #85
Workflow file for this run
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: Desktop | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
app: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Chocolatey Install Action | |
if: ${{ matrix.os == 'windows-latest' }} | |
uses: crazy-max/ghaction-chocolatey@v2 | |
with: | |
args: install python2 visualcpp-build-tools -y | |
- name: Add msbuild to PATH | |
if: matrix.os == 'windows-latest' | |
uses: microsoft/[email protected] | |
- name: Yarn build | |
run: yarn && yarn build && yarn build:dist && cd build-dist && yarn | |
- run: mkdir ~/.private_keys && echo "$APPLE_NOTARIZE_KEY" > ~/.private_keys/AuthKey_5VH6PQ3585.p8 | |
if: ${{ matrix.os == 'macos-latest' }} | |
shell: bash | |
env: | |
APPLE_NOTARIZE_KEY: ${{secrets.APPLE_NOTARIZE_KEY}} | |
- name: Build Desktop | |
run: yarn build && yarn dist | |
working-directory: ./desktop/main | |
env: | |
NODE_ENV: production | |
USE_HARD_LINKS: false | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CSC_LINK: ${{ matrix.os == 'windows-latest' && secrets.WIN_CSC_LINK || secrets.CSC_LINK }} | |
CSC_KEY_PASSWORD: ${{ matrix.os == 'windows-latest' && secrets.WIN_CSC_KEY_PASSWORD || secrets.CSC_KEY_PASSWORD }} | |
- name: Upload App | |
if: startsWith(github.ref, 'refs/tags/v') == false || failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: desktop-${{ matrix.os }} | |
path: | | |
./build/desktop/main/dist/*.AppImage | |
./build/desktop/main/dist/*.dmg | |
./build/desktop/main/dist/*.exe | |
retention-days: 1 |