Skip to content

Commit e8a274c

Browse files
authored
Update release.yml
1 parent 891c1bd commit e8a274c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)