Skip to content

Commit

Permalink
Fix Hackage uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed Apr 5, 2020
1 parent f3767f3 commit ad0deba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 28 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Expand Up @@ -52,5 +52,11 @@ script:
- stack sdist

after_success:
- stack exec runghc tools/upload-package.hs
- stack exec runghc tools/attach-binary.hs

deploy:
provider: script
on:
tags: true
skip_cleanup: true
script: yes | stack upload .
4 changes: 2 additions & 2 deletions tools/install-stack.ps1
@@ -1,8 +1,8 @@
# if (Test-Path c:/bin/stack.exe) {} else {
if (Test-Path c:/bin/stack.exe) {} else {
curl -OutFile stack.zip -Uri https://github.com/commercialhaskell/stack/releases/download/v2.3.0.1/stack-2.3.0.1-windows-x86_64.zip
7z x stack.zip stack.exe
mkdir c:/bin
mv stack.exe c:/bin
# }
}

stack --version
6 changes: 3 additions & 3 deletions tools/install-stack.sh
@@ -1,15 +1,15 @@
#!/usr/bin/env sh
set -o errexit -o xtrace

# if test ! -f "$HOME/.local/bin/stack"
# then
if test ! -f "$HOME/.local/bin/stack"
then
URL="https://github.com/commercialhaskell/stack/releases/download/v2.3.0.1/stack-2.3.0.1-$TRAVIS_OS_NAME-x86_64.tar.gz"
curl --location "$URL" --output stack.tar.gz
gunzip stack.tar.gz
tar -x -f stack.tar --strip-components 1
mkdir -p "$HOME/.local/bin"
mv stack "$HOME/.local/bin/"
rm stack.tar
# fi
fi

stack --version
22 changes: 0 additions & 22 deletions tools/upload-package.hs

This file was deleted.

0 comments on commit ad0deba

Please sign in to comment.