dhall-haskell/scripts/release.sh
Simon Jakobi cd49b65c23 Move HsYAML-based code to new package dhall-yaml (#1514)
* Shared code for the dhall-to-yaml[-ng] executables stays in dhall-json.
* Shared tests are in dhall-yaml.

Fixes #1435.
2019-11-07 12:11:04 +00:00

25 lines
934 B
Bash
Executable File

JOBSET=master
function release {
NAME="$1"
VERSION="$2"
cabal v1-configure
cabal v1-sdist
cabal upload --publish "dist/${NAME}-${VERSION}.tar.gz"
curl --location --output "${NAME}-${VERSION}-x86_64-linux.tar.bz2" "https://hydra.dhall-lang.org/job/dhall-haskell/${JOBSET}/tarball-${NAME}/latest/download/1/${NAME}.tar.bz2"
curl --location --remote-name "https://hydra.dhall-lang.org/job/dhall-haskell/${JOBSET}/image-${NAME}/latest/download/1/docker-image-${NAME}.tar.gz"
skopeo copy --dest-creds=gabriel439:$(< dockerPassword.txt) "docker-archive:docker-image-${NAME}.tar.gz" "docker://dhallhaskell/${NAME}"
skopeo copy --dest-creds=gabriel439:$(< dockerPassword.txt) "docker-archive:docker-image-${NAME}.tar.gz" "docker://dhallhaskell/${NAME}:${VERSION}"
}
release dhall-lsp-server 1.0.2
release dhall-json 1.5.0
release dhall-yaml 1.5.0
release dhall-bash 1.0.24
release dhall-nix 1.1.9
release dhall 1.27.0