Skip to content

Commit 5db47b7

Browse files
committed
github: make release build create staging directory
I think 672f9e8 was correct in saying that we don't need the `$staging/complete` directory, but we do seem to need the `$staging` directory, so let's restore the code for creating that. While at it, I also cleaned up a bit so we use the `$outdir` variable instead of duplicating it.
1 parent eda79bf commit 5db47b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,17 @@ jobs:
4949
- name: Build archive
5050
shell: bash
5151
run: |
52-
outdir="./target/${{ matrix.target }}/release"
52+
outdir="target/${{ matrix.target }}/release"
5353
staging="jj-${{ github.event.release.tag_name }}-${{ matrix.target }}"
54+
mkdir "$staging"
5455
cp {README.md,LICENSE} "$staging/"
5556
if [ "${{ matrix.os }}" = "windows-2022" ]; then
56-
cp "target/${{ matrix.target }}/release/jj.exe" "$staging/"
57+
cp "$outdir/jj.exe" "$staging/"
5758
cd "$staging"
5859
7z a "../$staging.zip" .
5960
echo "ASSET=$staging.zip" >> $GITHUB_ENV
6061
else
61-
cp "target/${{ matrix.target }}/release/jj" "$staging/"
62+
cp "$outdir/jj" "$staging/"
6263
tar czf "$staging.tar.gz" -C "$staging" .
6364
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
6465
fi

0 commit comments

Comments
 (0)