fix(ci, flatter): fixed building nightly repo

This commit is contained in:
2026-07-05 18:22:03 +03:00
parent c4699002fd
commit 08153e4a1c
+6 -3
View File
@@ -100,7 +100,7 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
path: bundles path: bundles
pattern: flatpak-bundle-* pattern: ru.arabianq.pwsp-*
- name: Checkout existing gh-pages - name: Checkout existing gh-pages
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -126,14 +126,17 @@ jobs:
cp -r gh-pages-branch pages-repo cp -r gh-pages-branch pages-repo
# Clean up the .git folder so it doesn't interfere # Clean up the .git folder so it doesn't interfere
rm -rf pages-repo/.git rm -rf pages-repo/.git
# Recreate empty directories that git might have ignored
mkdir -p pages-repo/objects pages-repo/refs
else else
echo "Initializing new OSTree repository..." echo "Initializing new OSTree repository..."
mkdir -p pages-repo mkdir -p pages-repo
ostree init --mode=archive-z2 --repo=pages-repo ostree init --mode=archive-z2 --repo=pages-repo
fi fi
for dir in bundles/flatpak-bundle-*; do shopt -s nullglob
arch=$(basename "$dir" | sed 's/flatpak-bundle-//') for dir in bundles/ru.arabianq.pwsp-*; do
arch=$(basename "$dir" | sed 's/ru.arabianq.pwsp-//')
# Find the flatpak file inside the dir # Find the flatpak file inside the dir
bundle=$(find "$dir" -name "*.flatpak" | head -n 1) bundle=$(find "$dir" -name "*.flatpak" | head -n 1)