gen-images.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: Build noid images
  2. on:
  3. workflow_dispatch:
  4. jobs:
  5. build-iso:
  6. runs-on: ubuntu-latest
  7. container:
  8. image: ghcr.io/void-linux/void-mklive:20250116R1
  9. options: --privileged
  10. steps:
  11. - name: Install required packages
  12. run: |
  13. xbps-install -Syu
  14. xbps-install -y git bash make cdrtools qemu-user-static liblz4 squashfs-tools xorriso xmlto python3 python3-Markdown
  15. - name: Clone void-mklive repository
  16. run: |
  17. git clone https://github.com/ndpm13/void-mklive.git
  18. cd void-mklive
  19. - name: Set up permissions
  20. run: |
  21. cd void-mklive
  22. chmod +x ./mkiso.sh
  23. chmod +x ./mklive.sh
  24. chmod +x ./mkrootfs.sh
  25. chmod +x ./installer.sh
  26. - name: Create output directory
  27. run: |
  28. mkdir -p /github/workspace/images
  29. - name: Build Noid Linux ISO
  30. run: |
  31. cd void-mklive
  32. yes | ./mkiso.sh -a x86_64 -b xfce -r "https://github.com/ndpm13/xbps-repo/releases/latest/download" -- -p "neovim alacritty starship brave" -I noid -C "live.autologin" -T "Noid Linux" -v "linux-lts" -o /github/workspace/images/noid.iso
  33. - name: Create release tag
  34. id: create_tag
  35. run: |
  36. # Get current date in YYYYMMDD format
  37. DATE=$(date +"%Y%m%d")
  38. echo "release_tag=noid-linux-${DATE}" >> $GITHUB_OUTPUT
  39. - name: Create GitHub Release
  40. id: create_release
  41. uses: softprops/action-gh-release@v1
  42. with:
  43. tag_name: ${{ steps.create_tag.outputs.release_tag }}
  44. name: Noid Linux Release ${{ steps.create_tag.outputs.release_tag }}
  45. body: |
  46. Noid Linux ISO Build
  47. - Based on Void Linux (XFCE)
  48. - Pre-installed packages: neovim, alacritty, starship, brave
  49. - Linux kernel: linux-lts
  50. files: /github/workspace/images/noid.iso
  51. draft: true
  52. prerelease: false
  53. env:
  54. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}