Skip to content

Commit 98855a7

Browse files
committed
build: add source tarballs to release process
1 parent 406e4bb commit 98855a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/make_release

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ echo building...
2020

2121
zig build -Dall_targets --release --prefix "$DESTDIR/build"
2222

23+
VERSION=$(/bin/cat "$DESTDIR/build/version")
24+
25+
git archive --format=tar.gz --output="$DESTDIR/flow-$VERSION-source.tar.gz" HEAD
26+
git archive --format=zip --output="$DESTDIR/flow-$VERSION-source.zip" HEAD
27+
2328
cd "$DESTDIR/build"
2429

25-
VERSION=$(/bin/cat version)
2630
TARGETS=$(/bin/ls)
2731

2832
for target in $TARGETS; do

0 commit comments

Comments
 (0)