electron.yml 1009 B

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