diff --git a/.github/workflows/build-deb-packages.yml b/.github/workflows/build-deb-packages.yml index ed008cb..b94d9dc 100644 --- a/.github/workflows/build-deb-packages.yml +++ b/.github/workflows/build-deb-packages.yml @@ -25,7 +25,19 @@ jobs: run: | sudo apt-get update sudo apt-get install -y build-essential autoconf automake libtool \ - libgtk-3-dev libglib2.0-dev gettext gettext autopoint desktop-file-utils devscripts fakeroot lintian + libgtk-3-dev libglib2.0-dev gettext desktop-file-utils devscripts fakeroot lintian autopoint dh-make + + - name: Prepare Debian Packaging + run: | + # Initialize debian directory structure if it doesn't exist + if [ ! -d "debian" ]; then + dh_make --createorig -y --single --native --packagename xnec2c_1.0 + fi + + # Optionally modify the debian/changelog file if needed + echo "xnec2c (1.0) unstable; urgency=low" > debian/changelog + echo " * Initial release." >> debian/changelog + echo " -- Your Name $(date -R)" >> debian/changelog - name: Build the DEB package using debuild run: |