Skip to content

Commit

Permalink
Prepare 0.1.17.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Feb 26, 2022
1 parent 36e192e commit b78aab8
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 16 deletions.
7 changes: 5 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ variables:
# Bump to invalidate GitLab CI cache.
CACHE_REV: 0

GIT_SUBMODULE_STRATEGY: recursive


############################################################
# CI Step
############################################################
Expand Down Expand Up @@ -115,7 +118,7 @@ variables:
script:
- bash ./.gitlab/script/ghcup_version.sh
variables:
JSON_VERSION: "0.0.6"
JSON_VERSION: "0.0.7"
artifacts:
expire_in: 2 week
paths:
Expand Down Expand Up @@ -248,7 +251,7 @@ variables:
only:
- tags
variables:
JSON_VERSION: "0.0.6"
JSON_VERSION: "0.0.7"

######## stack test ########

Expand Down
2 changes: 0 additions & 2 deletions .gitlab/script/ghcup_cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"

mkdir -p "$CI_PROJECT_DIR"/.local/bin
mkdir -p data/
git clone https://github.com/haskell/ghcup-metadata.git data/metadata

CI_PROJECT_DIR=$(pwd)

Expand Down
2 changes: 0 additions & 2 deletions .gitlab/script/ghcup_git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"

mkdir -p "$CI_PROJECT_DIR"/.local/bin
mkdir -p data/
git clone https://github.com/haskell/ghcup-metadata.git data/metadata

CI_PROJECT_DIR=$(pwd)

Expand Down
2 changes: 0 additions & 2 deletions .gitlab/script/ghcup_hls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"

mkdir -p "$CI_PROJECT_DIR"/.local/bin
mkdir -p data/
git clone https://github.com/haskell/ghcup-metadata.git data/metadata

CI_PROJECT_DIR=$(pwd)

Expand Down
2 changes: 0 additions & 2 deletions .gitlab/script/ghcup_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"

mkdir -p "$CI_PROJECT_DIR"/.local/bin
mkdir -p data/
git clone https://github.com/haskell/ghcup-metadata.git data/metadata

CI_PROJECT_DIR=$(pwd)

Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "data/metadata"]
path = data/metadata
url = https://github.com/haskell/ghcup-metadata.git
branch = ghcup-0.1.17.5
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Revision history for ghcup

## 0.1.17.5 -- ????-??-??
## 0.1.17.5 -- 2022-02-26

* Implement `ghcup run` subcommand wrt [#137](https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/137)
* Support installation of dynamic HLS bindists wrt [HLS #2675](https://github.com/haskell/haskell-language-server/pull/2675) and [#237](https://gitlab.haskell.org/haskell/ghcup-hs/-/merge_requests/237)
Expand Down
1 change: 1 addition & 0 deletions data/metadata
Submodule metadata added at 80b61e
10 changes: 6 additions & 4 deletions docs/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Every subcommand now lives in its own module under [GHCup.OptParse.MyCommand](ht

# Releasing

1. Update version in `ghcup.cabal` and `boostrap-haskell` (`ghver` variable at the top of the script)
1. Update version in `ghcup.cabal`

2. Update `GHCup.Version` module. `ghcupURL` must only be updated if we change the `GHCupInfo` type or the YAML representation of it. The version of the YAML represents the change increments. `ghcUpVer` is the current application version, read from `ghcup.cabal`.

Expand All @@ -102,11 +102,13 @@ Every subcommand now lives in its own module under [GHCup.OptParse.MyCommand](ht

7. Upload the final `ghcup-<ver>.yaml` (and a detached GPG sig of it) to `webhost.haskell.org/ghcup/data/` (for yaml versions <= 0.0.6) as well as [https://github.com/haskell/ghcup-metadata](https://github.com/haskell/ghcup-metadata) (for all versions).

8. Upload `bootstrap-haskell` and `bootstrap-haskell.ps1` to `webhost.haskell.org/ghcup/sh/`
8. Update version in `scripts/bootstrap/bootstrap-haskell` (`ghver` variable at the top of the script)

9. Update the top-level ghcup symlinks at `downloads.haskell.org/~ghcup`
9. Upload `scripts/bootstrap/bootstrap-haskell` and `scripts/bootstrap/bootstrap-haskell.ps1` to `webhost.haskell.org/ghcup/sh/`

10. Post on reddit/discourse/etc. and collect rewards
10. Update the top-level ghcup symlinks at `downloads.haskell.org/~ghcup` (see `scripts/update-sftp.sh`)

11. Post on reddit/discourse/etc. and collect rewards

# Documentation

Expand Down
2 changes: 1 addition & 1 deletion lib/GHCup/Version.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import qualified Data.Text as T
-- Note that when updating this, CI requires that the file exsists AND the same file exists at
-- 'https://www.haskell.org/ghcup/exp/ghcup-<ver>.yaml' with some newlines added.
ghcupURL :: URI
ghcupURL = [uri|https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.6.yaml|]
ghcupURL = [uri|https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.7.yaml|]

-- | The current ghcup version.
ghcUpVer :: PVP
Expand Down

0 comments on commit b78aab8

Please sign in to comment.