Skip to content

Commit

Permalink
sunny: workflow: may be a fix ?!
Browse files Browse the repository at this point in the history
  • Loading branch information
sppidy authored Jan 11, 2025
1 parent c07234b commit 6f876d8
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@ jobs:
docker run --rm --privileged \
-v "$GITHUB_WORKSPACE:/work" \
-v "/mnt/temp:/tmp" \
$IMAGE_NAME /bin/bash -c "
pacman -Sy --noconfirm archiso
for branch in ${branches[@]}; do
echo 'Checking out branch: $branch'
git checkout $branch
$IMAGE_NAME /bin/bash <<'EOF'
set -e
echo 'Building ISO for branch $branch'
mkarchiso -v -w /tmp/work -o /tmp/out /work
pacman -Sy --noconfirm archiso
for branch in "${branches[@]}"; do
echo "Checking out branch: $branch"
git fetch origin $branch
git checkout $branch
# Move the generated ISO to a central location
mv /tmp/out/*.iso /mnt/temp/$branch-sunnyos.iso
done
"
echo "Building ISO for branch $branch"
mkarchiso -v -w /tmp/work -o /tmp/out /work
# Move the generated ISO to a central location
mv /tmp/out/*.iso /mnt/temp/$branch-sunnyos.iso
done
EOF
- name: Create GitHub Release
id: create_release
Expand Down

0 comments on commit 6f876d8

Please sign in to comment.