Skip to content

Commit

Permalink
Unify gh download and downloads.haskell upload script locations
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Sep 3, 2023
1 parent 85aa2af commit f6ee6b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
- this creates a draft release
- `git push <remote> <version>`
- [ ] run `sh scripts/release/download-gh-artifacts.sh <version> <your-gpg-email>`
- downloads artifacts to `gh-release-artifacts/<version>/`
- downloads artifacts to `gh-release-artifacts/haskell-language-server-<version>/`
- also downloads FreeBSD bindist from circle CI
- adds signatures
- [ ] upload artifacts to downloads.haskell.org manually from `gh-release-artifacts/<version>/`
- [ ] upload artifacts to downloads.haskell.org from `gh-release-artifacts/haskell-language-server-<version>/`
- You require sftp access, contact wz1000, bgamari or chreekat
- For uploading, rename `gh-release-artifacts/<version>` to `gh-release-artifacts/haskell-language-server-<version>`
- `cd gh-release-artifacts/haskell-language-server-<version>`
- `SIGNING_KEY=... ../../release/upload.sh upload`
- Your SIGNING_KEY can be obtained with `gpg --list-secret-keys --keyid-format=long`
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/create-yaml-snippet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o pipefail

RELEASE=$1

cd "gh-release-artifacts/${RELEASE}"
cd "gh-release-artifacts/haskell-language-server-${RELEASE}"

cat <<EOF > /dev/stdout
$RELEASE:
Expand Down
6 changes: 3 additions & 3 deletions scripts/release/download-gh-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ for com in gh gpg curl sha256sum ; do
command -V ${com} >/dev/null 2>&1
done

[ ! -e "gh-release-artifacts/${RELEASE}" ]
[ ! -e "gh-release-artifacts/haskell-language-server-${RELEASE}" ]

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

cd "gh-release-artifacts/${RELEASE}"
cd "gh-release-artifacts/haskell-language-server-${RELEASE}"

# github
gh release download "$RELEASE"
Expand Down

0 comments on commit f6ee6b8

Please sign in to comment.