File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,26 @@ jobs:
8484
8585 - name : Create Debian package
8686 run : |
87+ # Get version by stripping 'v' prefix from tag
8788 VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
8889 WORKDIR=$(pwd)
8990 PKG=osvm-$VERSION
9091 TARBALL="$WORKDIR/osvm_${VERSION}.orig.tar.gz"
92+ # Clean up any old stuff
9193 rm -rf "$PKG"
9294 rm -f "$TARBALL"
95+ # Prepare source dir
9396 mkdir -p "$PKG"
9497 cp -r src Cargo.toml Cargo.lock README.md LICENSE "$PKG/"
98+ # Pack source tarball in the working dir
9599 tar czvf "$TARBALL" "$PKG"
100+ # Move into the package dir
96101 cd "$PKG"
97- dh_make -y -s -c apache -e [email protected] -f "$TARBALL" 102+ # Run dh_make using relative path to the tarball
103+ dh_make -y -s -c apache -e [email protected] -f "../osvm_${VERSION}.orig.tar.gz" 104+ # Move back to the working dir
98105 cd "$WORKDIR"
106+ # Build the .deb package
99107 dpkg-buildpackage -us -uc
100108
101109 - name : Upload Debian package
You can’t perform that action at this time.
0 commit comments