Skip to content

Commit c10af27

Browse files
committed
Use git-archive to create src tarball in upload
1 parent e580d72 commit c10af27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ result-doc
4545

4646
out/
4747
store/
48+
gh-release-artifacts/

scripts/release/download-gh-artifacts.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ done
1616
[ ! -e "gh-release-artifacts/${RELEASE}" ]
1717

1818
mkdir -p "gh-release-artifacts/${RELEASE}"
19+
20+
git archive --format=tar.gz -o "gh-release-artifacts/${RELEASE}/haskell-language-server-${RELEASE}-src.tar.gz" --prefix="haskell-language-server-${RELEASE}/" HEAD
21+
1922
cd "gh-release-artifacts/${RELEASE}"
2023

2124
# github
@@ -29,4 +32,4 @@ curl --fail -L -o "haskell-language-server-${RELEASE}-x86_64-freebsd.tar.xz" \
2932
sha256sum haskell-language-server-* > SHA256SUMS
3033
gpg --detach-sign -u "${SIGNER}" SHA256SUMS
3134

32-
gh release upload "$RELEASE" "haskell-language-server-${RELEASE}-x86_64-freebsd.tar.xz" SHA256SUMS SHA256SUMS.sig
35+
gh release upload "$RELEASE" "haskell-language-server-${RELEASE}-src.tar.gz" "haskell-language-server-${RELEASE}-x86_64-freebsd.tar.xz" SHA256SUMS SHA256SUMS.sig

0 commit comments

Comments
 (0)