Using manual clone instead, checkout can't figure out the repo URL
Some checks failed
Build & Upload FAH Client DEB / build (push) Failing after 2m40s
Some checks failed
Build & Upload FAH Client DEB / build (push) Failing after 2m40s
This commit is contained in:
parent
f970c51a8b
commit
5ccd777813
1 changed files with 19 additions and 12 deletions
|
|
@ -1,19 +1,22 @@
|
||||||
name: Build FAH Client Package
|
name: Build & Upload FAH Client DEB
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deb:
|
build:
|
||||||
runs-on: [self-hosted]
|
runs-on: [self-hosted]
|
||||||
env:
|
env:
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
COMMIT: ${{ github.sha }}
|
COMMIT: ${{ github.sha }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Clone current branch
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
|
git clone --branch "$BRANCH" https://mentalnet.xyz/forgejo/markmental/fah-debian13.git .
|
||||||
|
echo "✅ Checked out branch $BRANCH ($COMMIT)"
|
||||||
|
|
||||||
- name: Install packaging tools
|
- name: Install packaging tools
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -22,17 +25,21 @@ jobs:
|
||||||
|
|
||||||
- name: Build Debian package
|
- name: Build Debian package
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build/"$BRANCH"
|
||||||
dpkg-deb --build . build/fahclient.deb
|
SHORT_HASH=$(echo "$COMMIT" | cut -c1-7)
|
||||||
echo "✅ Built build/fahclient.deb"
|
PKG_NAME="fahclient-${BRANCH}-${SHORT_HASH}.deb"
|
||||||
|
dpkg-deb --build . build/"$BRANCH"/"$PKG_NAME"
|
||||||
|
echo "🎉 Built $PKG_NAME"
|
||||||
|
|
||||||
- name: Lint package
|
- name: Verify package
|
||||||
run: |
|
run: |
|
||||||
lintian build/fahclient.deb || true
|
lintian build/"$BRANCH"/*.deb || true
|
||||||
|
dpkg-deb --info build/"$BRANCH"/*.deb
|
||||||
|
dpkg-deb --contents build/"$BRANCH"/*.deb | head -20
|
||||||
|
|
||||||
- name: Upload .deb artifact
|
- name: Upload .deb artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: fahclient-deb
|
name: fahclient-${{ env.BRANCH }}-${{ env.COMMIT }}
|
||||||
path: build/fahclient.deb
|
path: build/${{ env.BRANCH }}/*.deb
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue