-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix debhelper bug, fixed build-release.yaml syntax
- Loading branch information
Showing
3 changed files
with
19 additions
and
9 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
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,10 +1,19 @@ | ||
#!/bin/sh | ||
set -ex | ||
cd /github/workspace/ | ||
|
||
# workaround for debhelper bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897569 | ||
mkdir -p deb_build_home | ||
ls | grep -v deb_build_home | xargs mv -t deb_build_home # move everything except deb_build_home | ||
cd deb_build_home | ||
|
||
dh_clean | ||
dpkg-buildpackage -us -uc -nc | ||
|
||
# set filename | ||
release_code_name=$(lsb_release --codename | sed 's/Codename:\s*//') | ||
package_name=$(basename ../*.deb | sed 's/.deb$//')_$release_code_name.deb | ||
mv ../*.deb ../$package_name | ||
|
||
mv ../*.deb $package_name | ||
echo "::set-output name=package_name::$package_name" | ||
# set action output | ||
echo "::set-output name=package_name::$package_name" |
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