windows.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: Windows Build
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: windows-2016
  6. steps:
  7. - name: Checkout
  8. uses: actions/checkout@v1
  9. - name: Installing Node
  10. uses: actions/setup-node@v1
  11. with:
  12. version: 10
  13. - name: Build
  14. shell: powershell
  15. run: |
  16. npm i -g [email protected]
  17. yarn
  18. node scripts/build-native.js
  19. yarn run build
  20. node scripts/prepackage-plugins.js
  21. - name: Build and sign packages
  22. run: node scripts/build-windows.js
  23. if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
  24. env:
  25. DEBUG: electron-builder,electron-builder:*
  26. GH_TOKEN: ${{ secrets.GH_TOKEN }}
  27. WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
  28. WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
  29. - name: Build packages without signing
  30. run: node scripts/build-windows.js
  31. if: github.repository != 'Eugeny/terminus' || github.event_name != 'push'
  32. - name: Package artifacts
  33. run: |
  34. mkdir artifact-setup
  35. mv dist/*-setup.exe artifact-setup/
  36. mkdir artifact-portable
  37. mv dist/*-portable.exe artifact-portable/
  38. mkdir artifact-appx
  39. mv dist/*.appx artifact-appx/
  40. - uses: actions/upload-artifact@master
  41. name: Upload installer
  42. with:
  43. name: Installer
  44. path: artifact-setup
  45. - uses: actions/upload-artifact@master
  46. name: Upload portable build
  47. with:
  48. name: Portable build
  49. path: artifact-portable
  50. - uses: actions/upload-artifact@master
  51. name: Upload APPX
  52. with:
  53. name: Portable build
  54. path: artifact-appx