Merge pull request #3 from ocristopfer/deb_release

Deb release
This commit is contained in:
Cristopfer Luis 2024-02-05 12:47:53 -03:00 committed by GitHub
commit 4c2199f5f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 8 deletions

View file

@ -35,11 +35,3 @@ jobs:
uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9
with:
filename: "cockpit-sensors-${{ github.ref_name }}.tar.xz"
- name: Build Deb
run: make deb
- name: Publish GitHub Deb release
uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9
with:
filename: "cockpit-sensors.deb"

View file

@ -190,3 +190,17 @@ $(NODE_MODULES_TEST): package.json
env -u NODE_ENV npm prune
.PHONY: all clean install devel-install devel-uninstall print-version dist node-cache rpm prepare-check check vm print-vm
deb:
rm -fr "`pwd`/output"
mkdir -m 0755 -p "`pwd`/output"
mkdir -m 0755 -p "`pwd`/output/cockpit-$(PACKAGE_NAME)"
mkdir -m 0755 -p "`pwd`/output/cockpit-$(PACKAGE_NAME)/DEBIAN"
mkdir -m 0755 -p "`pwd`/output/cockpit-$(PACKAGE_NAME)/usr/share/cockpit/$(PACKAGE_NAME)"
cp -r dist/* "`pwd`/output/cockpit-$(PACKAGE_NAME)/usr/share/cockpit/$(PACKAGE_NAME)"
cp packaging/cockpit-$(PACKAGE_NAME).control "`pwd`/output/cockpit-$(PACKAGE_NAME)/DEBIAN/control"
chmod 755 "`pwd`/output/cockpit-$(PACKAGE_NAME)/DEBIAN/control"
dpkg-deb -Zxz --build output/cockpit-$(PACKAGE_NAME)
mv "`pwd`/output/cockpit-$(PACKAGE_NAME).deb" "`pwd`/"
rm -r "`pwd`/output"