electron.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Build electron app
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. release:
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. matrix:
  11. os: [macos-latest, ubuntu-latest, windows-latest]
  12. steps:
  13. - name: Check out Git repository
  14. uses: actions/checkout@v1
  15. - name: Install Node.js, NPM and Yarn
  16. uses: actions/setup-node@v1
  17. with:
  18. node-version: 14
  19. - name: Build client
  20. run: |
  21. cd client
  22. yarn --network-timeout 100000
  23. yarn build
  24. cp -r build ../express
  25. - name: Build/release Electron app
  26. uses: samuelmeuli/action-electron-builder@v1
  27. with:
  28. package_root: './express'
  29. # GitHub token, automatically provided to the action
  30. # (No need to define this secret in the repo settings)
  31. github_token: ${{ secrets.GH_TOKEN }}
  32. # If the commit is tagged with a version (e.g. "v1.0.0"),
  33. # release the app after building
  34. release: ${{ startsWith(github.ref, 'refs/tags/v') }}