build.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the action will run. Triggers the workflow on push or pull request
  4. # events but only for the master branch
  5. on:
  6. push:
  7. branches:
  8. - master
  9. - development
  10. release:
  11. types: [created]
  12. jobs:
  13. build:
  14. defaults:
  15. run:
  16. working-directory:
  17. AhMyth-Server
  18. runs-on: ubuntu-latest
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Node.js environment
  22. uses: actions/setup-node@v1.4.3
  23. with:
  24. node-version: 10.x
  25. - name: Install dependencies
  26. run: |
  27. npm i
  28. - name: Build Linux app (32 bit)
  29. run: npm run build:linux32
  30. - name: Build Linux app (64 bit)
  31. run: npm run build:linux64
  32. - name: Build Windows App (32 bit)
  33. run: npm run build:win32
  34. - name: Build Windows App (64 bit)
  35. run: npm run build:win64
  36. - name: Upload - push to artifact files
  37. uses: actions/upload-artifact@v1
  38. with:
  39. name: AhMyth
  40. path: /dist/