fah-debian13/.forgejo/workflows/build.yml
mrkmntal 5ccd777813
Some checks failed
Build & Upload FAH Client DEB / build (push) Failing after 2m40s
Using manual clone instead, checkout can't figure out the repo URL
2025-11-07 17:56:50 -05:00

45 lines
1.2 KiB
YAML

name: Build & Upload FAH Client DEB
on:
push:
branches:
- master
jobs:
build:
runs-on: [self-hosted]
env:
BRANCH: ${{ github.ref_name }}
COMMIT: ${{ github.sha }}
steps:
- name: Clone current branch
run: |
git clone --branch "$BRANCH" https://mentalnet.xyz/forgejo/markmental/fah-debian13.git .
echo "✅ Checked out branch $BRANCH ($COMMIT)"
- name: Install packaging tools
run: |
apt-get update
apt-get install -y dpkg-dev fakeroot lintian
- name: Build Debian package
run: |
mkdir -p build/"$BRANCH"
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"
- name: Verify package
run: |
lintian build/"$BRANCH"/*.deb || true
dpkg-deb --info build/"$BRANCH"/*.deb
dpkg-deb --contents build/"$BRANCH"/*.deb | head -20
- name: Upload .deb artifact
uses: actions/upload-artifact@v3
with:
name: fahclient-${{ env.BRANCH }}-${{ env.COMMIT }}
path: build/${{ env.BRANCH }}/*.deb