build_iso.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Build PageOS ISO
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. name:
  6. description: "OS name"
  7. required: false
  8. default: ""
  9. custom-ui-id:
  10. description: "The ID of the UI package to use"
  11. required: false
  12. default: ""
  13. custom-login-html-url:
  14. description: "Direct link to a custom login HTML file"
  15. required: false
  16. default: ""
  17. jobs:
  18. build-iso:
  19. runs-on: ubuntu-latest
  20. container:
  21. image: archlinux:latest
  22. options: --privileged
  23. steps:
  24. - name: Checkout repository
  25. uses: actions/checkout@v4
  26. with:
  27. repository: swaybien/pageos
  28. - name: Setup actions environment
  29. run: ./scripts/gh_acions_setup.bash
  30. - name: Rebrand
  31. run: ./scripts/rebrand.bash "${{ github.event.inputs.custom-ui-id }}" "${{ github.event.inputs.custom-login-html-url }}" "${{ github.event.inputs.name }}"
  32. - name: Run build script
  33. run: sudo -u builder ./build.bash --noconfirm
  34. - name: Upload ISO artifact
  35. uses: actions/upload-artifact@v4
  36. with:
  37. name: ${{ github.event.inputs.name || 'pageos' }}
  38. path: target/*.iso
  39. compression-level: 9 # maximum compression
  40. retention-days: 5