Fix: stop building git CI stuff into the package, (Don't think they want my commit history)
Some checks failed
Build & Upload FAH Client DEB / build (push) Failing after 2m5s

This commit is contained in:
mrkmntal 2025-11-07 18:02:15 -05:00
commit ad9b3065ab

View file

@ -25,11 +25,16 @@ jobs:
- name: Build Debian package - name: Build Debian package
run: | run: |
mkdir -p build/"$BRANCH" mkdir -p build/"$BRANCH"/staging
SHORT_HASH=$(echo "$COMMIT" | cut -c1-7) SHORT_HASH=$(echo "$COMMIT" | cut -c1-7)
PKG_NAME="fahclient-${BRANCH}-${SHORT_HASH}.deb" PKG_NAME="fahclient-${BRANCH}-${SHORT_HASH}.deb"
dpkg-deb --build . build/"$BRANCH"/"$PKG_NAME"
echo "🎉 Built $PKG_NAME" # Copy only actual package data, excluding Git/CI junk
rsync -a --exclude='.git*' --exclude='build' --exclude='.forgejo' ./ build/"$BRANCH"/staging/
# Build from clean staging dir
dpkg-deb --build build/"$BRANCH"/staging build/"$BRANCH"/"$PKG_NAME"
echo "🎉 Built $PKG_NAME from clean staging directory"
- name: Verify package - name: Verify package
run: | run: |