Update debrepo template
This commit is contained in:
parent
c2ca40c4bb
commit
f54568a60b
@ -20,10 +20,11 @@ jobs:
|
|||||||
PKG_NAME="${GITHUB_REPOSITORY##*/}"
|
PKG_NAME="${GITHUB_REPOSITORY##*/}"
|
||||||
echo "Building ${PKG_NAME} version ${VERSION}"
|
echo "Building ${PKG_NAME} version ${VERSION}"
|
||||||
|
|
||||||
# Update version in debian/changelog if it exists
|
# Update version in control file
|
||||||
if [ -f debian/changelog ]; then
|
sed -i "s/^Version:.*/Version: ${VERSION}/" debian/control
|
||||||
sed -i "1s/([^)]*)/($VERSION)/" debian/changelog
|
|
||||||
fi
|
# dpkg-deb requires uppercase DEBIAN directory
|
||||||
|
mv debian DEBIAN
|
||||||
|
|
||||||
dpkg-deb --build --root-owner-group . "../${PKG_NAME}_${VERSION}_amd64.deb"
|
dpkg-deb --build --root-owner-group . "../${PKG_NAME}_${VERSION}_amd64.deb"
|
||||||
echo "DEB_FILE=$(ls ../*.deb)" >> "$GITHUB_ENV"
|
echo "DEB_FILE=$(ls ../*.deb)" >> "$GITHUB_ENV"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user