This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
118 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
# Releasing a new version of Mu-Haskell | ||
|
||
This list assumes you have your Hackage username and password set in your `.cabal/config` file. | ||
|
||
1. Run `./test-schema.sh` and check that no errors are found | ||
- If found, abort and open issue | ||
2. Run `./test-templates.sh` and check that no errors are found | ||
2. Check that you can build with all compilers, and update project files if required: | ||
- `stack build` (for the current LTS) | ||
- `stack build --stack-yaml stack-nightly.yaml` (for the next version) | ||
- `cabal build all` | ||
3. For each package, run the following commands: | ||
|
||
``` | ||
./release-package.sh <package> <version> | ||
``` | ||
4. Push and merge any pending changes | ||
5. Run `./test-templates.sh` and check that no errors are found | ||
- If found, update templates in `templates` folder and open a PR | ||
3. Publish a new release in GitHub: | ||
6. Publish a new release in GitHub: | ||
- Tag by running `git tag -a vX.Y -m "Release X.Y"` | ||
- Push the tag `git push --tags` | ||
- Create a new release in [GitHub](https://github.com/higherkindness/mu-haskell/releases/new) for that tag, or if using [`hub`](https://hub.github.com/hub-release.1.html), run `hub release create vX.Y` | ||
5. For each package, run the following commands: | ||
- create the package: `cabal sdist package` | ||
- publish a candidate: `cabal upload route-to.tar.gz`, and check it | ||
- publish definitely: `cabal upload --publish route-to.tar.gz` | ||
- create the docs: `cabal v2-haddock --builddir="dist-newstyle" --haddock-for-hackage --enable-doc package` | ||
- publish docs: `cabal upload -d --publish route-to-docs.tar.gz` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
cabal sdist ${1} | ||
cabal upload dist-newstyle/sdist/${1}-${2}.tar.gz | ||
echo "Check that it has been published correctly, and press Enter" | ||
read | ||
cabal upload --publish dist-newstyle/sdist/${1}-${2}.tar.gz | ||
cabal v2-haddock --builddir="dist-newstyle" --haddock-for-hackage --enable-doc ${1} | ||
cabal upload -d --publish dist-newstyle/${1}-${2}-docs.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.