diff --git a/.travis.yml b/.travis.yml index a2cff89..02029b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: @@ -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 diff --git a/build.sbt b/build.sbt index 2254a4e..fedf1a2 100644 --- a/build.sbt +++ b/build.sbt @@ -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" @@ -109,7 +107,7 @@ lazy val docs = project mdocJS := Some(jsDocs), mdocVariables := Map( "ORG" -> organization.value, - "VERSION" -> stableVersion + "VERSION" -> version.value ) ) .settings(noPublishSettings) diff --git a/scripts/builds.sh b/scripts/builds.sh index 30bc85e..3f03a01 100755 --- a/scripts/builds.sh +++ b/scripts/builds.sh @@ -28,6 +28,9 @@ case "$1" in "release") sbt 'ci-release' ;; + "publish-docs") + sbt 'docs/docusaurusPublishGhpages' + ;; *) echo "no command specified!" exit 1