electron.yml 1021 B

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