build.yml 708 B

1234567891011121314151617181920212223242526272829
  1. name: Build/release
  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/release Electron app
  17. uses: samuelmeuli/action-electron-builder@v1
  18. with:
  19. github_token: ${{ secrets.github_token }}
  20. # If the commit is tagged with a version (e.g. "v1.0.0"),
  21. # release the app after building
  22. release: ${{ startsWith(github.ref, 'refs/tags/v') }}