Skip to content

Commit

Permalink
github: fix build-deb-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wheeler committed Aug 15, 2024
1 parent 14edd5a commit 6b734d1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-deb-packages.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
name: Build DEB Packages

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -53,14 +41,26 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "DIST=$DIST" >> $GITHUB_ENV
- name: Generate Debian Changelog from Git Log
run: |
VERSION=${{ steps.version.outputs.VERSION }}${{ steps.version.outputs.DIST }}
PACKAGE_NAME="xnec2c"
DISTRIBUTION="unstable"
MAINTAINER="Your Name <[email protected]>"
echo "$PACKAGE_NAME ($VERSION) $DISTRIBUTION; urgency=low" > debian/changelog
echo "" >> debian/changelog
git log --pretty=format:" * %s" >> debian/changelog
echo "" >> debian/changelog
echo " -- $MAINTAINER $(date -R)" >> debian/changelog
- name: Generate Debian Packaging Files
run: |
if [ ! -d "debian" ]; then
dh_make --createorig -y --single --native --packagename xnec2c_$VERSION
echo -e '#!/usr/bin/make -f\n%:\n\tdh $@' > debian/rules
chmod +x debian/rules
echo "9" > debian/compat
echo "xnec2c ($VERSION) unstable; urgency=low\n\n * Initial release.\n\n -- Your Name <[email protected]> $(date -R)" > debian/changelog
echo "Source: xnec2c" > debian/control
echo "Section: utils" >> debian/control
echo "Priority: optional" >> debian/control
Expand Down

0 comments on commit 6b734d1

Please sign in to comment.