This commit is contained in:
parent
7a3a048e76
commit
39946c8366
1 changed files with 20 additions and 5 deletions
|
@ -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: |
|
||||||
|
|
Loading…
Reference in a new issue