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
Some checks failed
Build & Upload FAH Client DEB / build (push) Failing after 2m5s
This commit is contained in:
parent
5ccd777813
commit
ad9b3065ab
1 changed files with 8 additions and 3 deletions
|
|
@ -25,11 +25,16 @@ jobs:
|
|||
|
||||
- name: Build Debian package
|
||||
run: |
|
||||
mkdir -p build/"$BRANCH"
|
||||
mkdir -p build/"$BRANCH"/staging
|
||||
SHORT_HASH=$(echo "$COMMIT" | cut -c1-7)
|
||||
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
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue