Skip to content

Commit

Permalink
Attempt to have Travis publish site
Browse files Browse the repository at this point in the history
  • Loading branch information
ceedubs committed Jul 9, 2019
1 parent 2551e2d commit 7529791
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ sudo: required
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
- name: publish-docs
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork

jobs:
include:
Expand All @@ -21,6 +23,8 @@ jobs:
script: ./scripts/builds.sh coverage
- stage: release
script: ./scripts/builds.sh release
- stage: publish-docs
script: ./scripts/builds.sh publish-docs

before_install:
- git fetch --tags
Expand Down
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// shadow sbt-scalajs' crossProject and CrossType from Scala.js 0.6.x
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}

val stableVersion = "0.2.1"

val catsVersion = "1.6.1"
val catsCollectionsVersion = "0.8.0"
val scalacheckVersion = "1.13.5"
Expand Down Expand Up @@ -109,7 +107,7 @@ lazy val docs = project
mdocJS := Some(jsDocs),
mdocVariables := Map(
"ORG" -> organization.value,
"VERSION" -> stableVersion
"VERSION" -> version.value
)
)
.settings(noPublishSettings)
Expand Down
3 changes: 3 additions & 0 deletions scripts/builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ case "$1" in
"release")
sbt 'ci-release'
;;
"publish-docs")
sbt 'docs/docusaurusPublishGhpages'
;;
*)
echo "no command specified!"
exit 1
Expand Down

0 comments on commit 7529791

Please sign in to comment.