summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-16 06:48:51 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-16 08:55:17 -0800
commit7f2b6e2d5015654954376639706543502a377844 (patch)
tree351147952db5cf4d02ca13a8dd1b31b6aeaf3dcd
parentc0c84ce814bb535fd770521dc1acf16b2c172c4e (diff)
downloadmill-7f2b6e2d5015654954376639706543502a377844.tar.gz
mill-7f2b6e2d5015654954376639706543502a377844.tar.bz2
mill-7f2b6e2d5015654954376639706543502a377844.zip
add publishing automation to travis
-rw-r--r--.travis.yml2
-rwxr-xr-xci/publish-docs.sh13
-rw-r--r--docs/pages/3 - Common Project Layouts.md6
3 files changed, 20 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 8e93fd0b..8e4b54fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,8 @@ matrix:
env: CI_SCRIPT=ci/test-mill-release.sh
- stage: release
env: CI_SCRIPT=ci/release.py
+ - stage: release
+ env: CI_SCRIPT=ci/publish-docs.sh
script:
- "$CI_SCRIPT"
diff --git a/ci/publish-docs.sh b/ci/publish-docs.sh
index 044b2ff5..9b0acbde 100755
--- a/ci/publish-docs.sh
+++ b/ci/publish-docs.sh
@@ -2,8 +2,19 @@
set -eux
-curl -L -o ~/bin/amm https://github.com/lihaoyi/Ammonite/releases/download/1.0.0/2.11-1.0.0 && chmod +x ~/bin/amm; fi
+curl -L -o ~/bin/amm https://github.com/lihaoyi/Ammonite/releases/download/1.0.3/2.12-1.0.3 && chmod +x ~/bin/amm
cd docs
+echo $GITHUB_DEPLOY_KEY | base64 --decode > deploy_key
+
+eval "$(ssh-agent -s)"
+chmod 600 deploy_key
+ssh-add deploy_key
+rm deploy_key
+
+
+git config --global user.email "haoyi.sg+travis@gmail.com"
+git config --global user.name "Ammonite Travis Bot"
+
amm build.sc --publish true \ No newline at end of file
diff --git a/docs/pages/3 - Common Project Layouts.md b/docs/pages/3 - Common Project Layouts.md
index e69ab984..0ae5fa51 100644
--- a/docs/pages/3 - Common Project Layouts.md
+++ b/docs/pages/3 - Common Project Layouts.md
@@ -206,6 +206,12 @@ compiler flags, and download artifacts as part of the build.
A collection of relatively small modules, all cross-built across the same few
versions of Scala.
+## Upickle
+
+- [Mill Build](https://github.com/lihaoyi/mill/blob/master/integration/test/resources/upickle/build.sc#L1)
+
+A single cross-platform Scala.js/Scala-JVM module, including the setup necessary
+for publishing to Maven Central
## Ammonite