Skip to content

Commit 262d611

Browse files
committed
Build src archive in github action
1 parent fb6c3c3 commit 262d611

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/release.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,9 @@ jobs:
862862
runs-on: ubuntu-latest
863863
if: startsWith(github.ref, 'refs/tags/')
864864
steps:
865+
- name: Checkout code
866+
uses: actions/checkout@v3
867+
865868
- uses: actions/download-artifact@v3
866869
with:
867870
path: ./out
@@ -943,11 +946,18 @@ jobs:
943946
mv plan_json.tar ../
944947
shell: bash
945948

949+
- name: build source tarball
950+
run: |
951+
export RELEASE=$GITHUB_REF_NAME
952+
git archive --format=tar.gz -o "out/${RELEASE}/haskell-language-server-${RELEASE}-src.tar.gz" --prefix="haskell-language-server-${RELEASE}/" HEAD
953+
shell: bash
954+
946955
- name: Release
947956
uses: softprops/action-gh-release@v1
948957
with:
949958
draft: true
950959
files: |
951960
./out/*.zip
952961
./out/*.tar.xz
962+
./out/*.tar.gz
953963
./out/*.tar

scripts/release/download-gh-artifacts.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ done
1717

1818
mkdir -p "gh-release-artifacts/${RELEASE}"
1919

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-
2220
cd "gh-release-artifacts/${RELEASE}"
2321

2422
# github
@@ -32,4 +30,4 @@ curl --fail -L -o "haskell-language-server-${RELEASE}-x86_64-freebsd.tar.xz" \
3230
sha256sum haskell-language-server-* > SHA256SUMS
3331
gpg --detach-sign -u "${SIGNER}" SHA256SUMS
3432

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

0 commit comments

Comments
 (0)