electron.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Build/release
  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, windows-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 and server
  19. run: |
  20. cd client
  21. yarn
  22. yarn build
  23. cp -r build ../express
  24. cd ../express
  25. yarn
  26. yarn build
  27. - name: Build/release Electron app
  28. uses: samuelmeuli/action-electron-builder@v1
  29. with:
  30. package_root: './express'
  31. # GitHub token, automatically provided to the action
  32. # (No need to define this secret in the repo settings)
  33. github_token: ${{ secrets.GH_TOKEN }}
  34. # If the commit is tagged with a version (e.g. "v1.0.0"),
  35. # release the app after building
  36. release: ${{ startsWith(github.ref, 'refs/tags/v') }}