From 3b3aaec6ee3232f4f95d00dd79a88b1e318ed366 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 1 Aug 2024 21:18:32 +0300 Subject: [PATCH] no release build --- .github/workflows/build-iso.yml | 40 +++++++++++++++++++++++++++++++ .github/workflows/release-iso.yml | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-iso.yml diff --git a/.github/workflows/build-iso.yml b/.github/workflows/build-iso.yml new file mode 100644 index 0000000..4ad543a --- /dev/null +++ b/.github/workflows/build-iso.yml @@ -0,0 +1,40 @@ +name: Build ISO + +on: + push: + branches: + - main + paths: + - '.github/release-iso' + +jobs: + build: + runs-on: ubuntu-latest + container: + image: ubuntu:latest + volumes: + - /proc:/proc + options: --privileged -it --cap-add=sys_admin --cap-add mknod --device=/dev/fuse --security-opt seccomp=unconfined --security-opt label=disable + + steps: + - name: Install Some essentials + run: apt-get update -y && apt-get install -y wget npm rsync nodejs + + - uses: actions/checkout@v3 + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa + known_hosts: ${{ secrets.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Get ISO Build Dependencies + run: ./get_iso_build_dep.sh + + - name: Generate Image ROOTFS from PikaOS Docker image + run: ./generate_roofs_from_docker.sh + + - name: Build ISO + run: ./build.sh diff --git a/.github/workflows/release-iso.yml b/.github/workflows/release-iso.yml index 7ecac27..ebe5a00 100644 --- a/.github/workflows/release-iso.yml +++ b/.github/workflows/release-iso.yml @@ -1,4 +1,4 @@ -name: Push ISO +name: Release ISO on: push: