Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Build ISO

on:
pull_request:
branches:
- main
workflow_dispatch:
schedule:
# Run the workflow every day at midnight
- cron: 0 0 * * *
- cron: '0 0 * * *' # Run the workflow every day at midnight

jobs:
build:
Expand All @@ -22,23 +24,23 @@ jobs:
run: |
set -e
docker exec arch-container bash -c "
pacman -Syu --noconfirm &&
pacman -S --noconfirm git archiso grub &&
cd /workdir &&
mkarchiso -v -w workdir/ -o out/ .
pacman -Syu --noconfirm &&
pacman -S --noconfirm git archiso grub &&
cd /workdir &&
mkarchiso -v -w workdir/ -o out/ .
"
- name: Rename ISO to Arch.iso
run: |
set -e
docker exec arch-container bash -c "
iso_file=\$(ls /workdir/out/*.iso 2>/dev/null | head -n 1) &&
[ -n \"\$iso_file\" ] && mv \$iso_file /workdir/out/Arch.iso || echo 'No ISO file found.'
iso_file=\$(ls /workdir/out/*.iso 2>/dev/null | head -n 1) &&
[ -n \"\$iso_file\" ] && mv \$iso_file /workdir/out/Arch.iso || echo 'No ISO file found.'
"
- name: List ISO files
run: |
docker exec arch-container bash -c "ls -l /workdir/out/ || echo 'Failed to list files.'"
docker exec arch-container bash -c "ls -l /workdir/out/" || echo 'Failed to list files.'
- name: Copy ISO to Host
run: |
Expand All @@ -48,7 +50,7 @@ jobs:
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

# Create a release on GitHub using Personal Access Token (PAT)
# Create a release on GitHub using GITHUB_TOKEN
- name: Create GitHub Release
id: create_release # Adding an ID to reference the release step
uses: actions/[email protected]
Expand Down
Loading