Skip to content

Commit

Permalink
Build src archive in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Mar 3, 2023
1 parent fb6c3c3 commit 262d611
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,9 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
path: ./out
Expand Down Expand Up @@ -943,11 +946,18 @@ jobs:
mv plan_json.tar ../
shell: bash

- name: build source tarball
run: |
export RELEASE=$GITHUB_REF_NAME
git archive --format=tar.gz -o "out/${RELEASE}/haskell-language-server-${RELEASE}-src.tar.gz" --prefix="haskell-language-server-${RELEASE}/" HEAD
shell: bash

- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
./out/*.zip
./out/*.tar.xz
./out/*.tar.gz
./out/*.tar
4 changes: 1 addition & 3 deletions scripts/release/download-gh-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ done

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

git archive --format=tar.gz -o "gh-release-artifacts/${RELEASE}/haskell-language-server-${RELEASE}-src.tar.gz" --prefix="haskell-language-server-${RELEASE}/" HEAD

cd "gh-release-artifacts/${RELEASE}"

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

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

0 comments on commit 262d611

Please sign in to comment.