inst
Some checks failed
/ upload (release) Has been cancelled

This commit is contained in:
pavel 2026-02-25 16:37:42 +01:00
commit 3eb1861589
3 changed files with 41 additions and 3 deletions

View file

@ -20,7 +20,19 @@ jobs:
run: |
mkdir -p static/installers
find static/installers -mindepth 1 -maxdepth 1 -type f -delete
find dist -maxdepth 1 -type f \( -name '*.rpm' -o -name '*.AppImage' -o -name '*.deb' -o -name '*.exe' -o -name '*.msi' \) -exec cp {} static/installers/ \;
copy_first() {
pattern="$1"
out="$2"
file="$(find dist -maxdepth 1 -type f -name "$pattern" | head -n 1)"
if [ -n "$file" ]; then
cp "$file" "static/installers/$out"
fi
}
copy_first '*.rpm' 'chattz-linux.rpm'
copy_first '*.deb' 'chattz-linux.deb'
copy_first '*.AppImage' 'chattz-linux.AppImage'
copy_first '*.exe' 'chattz-windows.exe'
copy_first '*.msi' 'chattz-windows.msi'
- name: Cache Cargo registry
uses: actions/cache@v4
with: