Skip to content

Commit

Permalink
Merge pull request #66 from disneystreaming/fix-version-microsite
Browse files Browse the repository at this point in the history
fix versioning for microsite snapshots
  • Loading branch information
lewisjkl committed Jan 21, 2022
2 parents 8caf20d + 34f4aa8 commit 8eab28f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
steps:
- name: Checkout current branch
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache
uses: coursier/cache-action@v6
Expand Down
8 changes: 7 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ lazy val docs =
.settings(
mdocIn := (ThisBuild / baseDirectory).value / "modules" / "docs" / "src",
mdocVariables := Map(
"VERSION" -> version.value,
"VERSION" -> (if (isSnapshot.value)
previousStableVersion.value.getOrElse(
throw new Exception(
"No previous version found from dynver"
)
)
else version.value),
"SCALA_VERSION" -> scalaVersion.value
),
isCE3 := true,
Expand Down

0 comments on commit 8eab28f

Please sign in to comment.