use dch
Some checks failed
Build and Deploy Debian Package / build-package (push) Failing after 57s

This commit is contained in:
Marco Realacci 2025-01-28 19:32:04 +01:00
parent 7a3a048e76
commit 39946c8366

View file

@ -29,11 +29,26 @@ jobs:
- name: Generate dynamic changelog - name: Generate dynamic changelog
run: | run: |
mkdir -p debian # Ensure the debian directory exists VERSION=${{ github.ref_name#v }} # Rimuove il prefisso "v" dal tag
sed -e "s/{{VERSION}}/${{ steps.version.outputs.DEB_VERSION }}/g" \ DISTRIBUTION=$DISTRO # Dalla variabile impostata in "Parse distribution"
-e "s/{{TAG}}/$GITHUB_REF_NAME/g" \
debian/changelog.in > debian/changelog # Configura dch per generare il changelog
cat debian/changelog # Debugging: Print the generated changelog dch --create \
--package magicfw \
--newversion "$VERSION" \
--distribution "$DISTRIBUTION" \
"Automatic release from Git tag ${GITHUB_REF_NAME}"
# Debug: Mostra il contenuto del changelog generato
cat debian/changelog
# - name: Generate dynamic changelog
# run: |
# mkdir -p debian # Ensure the debian directory exists
# sed -e "s/{{VERSION}}/${{ steps.version.outputs.DEB_VERSION }}/g" \
# -e "s/{{TAG}}/$GITHUB_REF_NAME/g" \
# debian/changelog.in > debian/changelog
# cat debian/changelog # Debugging: Print the generated changelog
- name: Build Debian Package - name: Build Debian Package
run: | run: |