Skip to content

Commit 53cbee7

Browse files
committed
Build src archive in github action
1 parent c40c83b commit 53cbee7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,9 @@ jobs:
825825
runs-on: ubuntu-latest
826826
if: startsWith(github.ref, 'refs/tags/')
827827
steps:
828+
- name: Checkout code
829+
uses: actions/checkout@v3
830+
828831
- uses: actions/download-artifact@v3
829832
with:
830833
path: ./out
@@ -902,11 +905,18 @@ jobs:
902905
mv plan_json.tar ../
903906
shell: bash
904907

908+
- name: build source tarball
909+
run: |
910+
export RELEASE=$GITHUB_REF_NAME
911+
git archive --format=tar.gz -o "out/haskell-language-server-${RELEASE}-src.tar.gz" --prefix="haskell-language-server-${RELEASE}/" HEAD
912+
shell: bash
913+
905914
- name: Release
906915
uses: softprops/action-gh-release@v1
907916
with:
908917
draft: true
909918
files: |
910919
./out/*.zip
911920
./out/*.tar.xz
921+
./out/*.tar.gz
912922
./out/*.tar

scripts/release/download-gh-artifacts.sh

Lines changed: 1 addition & 3 deletions
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)