From d873c9cb3ae7be3b873e47961c9010316ec2af17 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 9 May 2021 10:34:53 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc46dac..930e6c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,34 +1,30 @@ -name: ISO pipeline +name: Build Arch ISO with easy-arch. on: push: - branches: [ master ] + branches: + - master + - main # In case we adopt this convention in the future pull_request: - branches: [ master ] - workflow_dispatch: + paths-ignore: + - '**.gitignore' + - '**.md' + - '**.yml' + - 'LICENSE' jobs: build: - name: Building ISO. runs-on: ubuntu-latest container: image: archlinux:latest options: --privileged steps: - uses: actions/checkout@v2 - - name: Creating workspace. - - run: mkdir -p /tmp/archlive/airootfs/root/ - - name: Copying easy-arch in the workspace. - - run: cp easy-arch.sh /tmp/archlive/airootfs/root/ - - name: Updating container. - - run: pacman -Sy - - name: Installing needed tools. - - run: pacman --noconfirm -S git archiso - - name: Copying profile inside the workspace. + - run: mkdir -p /tmp/archlive/airootfs/root/ && cp easy-arch.sh /tmp/archlive/airootfs/root/ + - run: pacman -Sy; pacman --noconfirm -S git archiso - run: cp -r /usr/share/archiso/configs/releng/* /tmp/archlive - - name: Creating the ISO. - - run: mkarchiso -v -w /tmp/archlive/work/ -o /tmp/archlive/out /tmp/archlive + - run: cd /tmp/archlive; mkarchiso -v -w work/ -o out/ ./ - uses: actions/upload-artifact@v2 with: - name: Arch ISO. + name: Arch Live ISO path: /tmp/archlive/out/*.iso