-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Wheeler
committed
Aug 15, 2024
1 parent
14edd5a
commit 6b734d1
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|