Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Dec 31, 2023
1 parent b9e84e6 commit fe24fa8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: coursier/[email protected]
- name: Run tests
run: ./mill -i __.publishArtifacts + __.test
Expand All @@ -34,9 +35,10 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- uses: actions/setup-java@v4
with:
Expand All @@ -61,7 +63,10 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- run: ./mill site.siteGen
- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
9 changes: 6 additions & 3 deletions build.sc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import $ivy.`com.github.lolgab::mill-crossplatform::0.2.4`
import $ivy.`io.github.quafadas::mill_scala3_site_mdoc::0.0.7`
import $ivy.`io.github.quafadas::mill_scala3_site_mdoc::0.0.9`
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`

import de.tobiasroeser.mill.vcs.version._
Expand Down Expand Up @@ -65,14 +65,17 @@ object scautable extends CrossPlatform {

object site extends SiteModule {

def latestVersion = T{VcsVersion.vcsState().lastTag.getOrElse("0.0.0").replace("v", "")}

def scalaVersion = scautable.jvm .scalaVersion

override def moduleDeps = Seq( scautable.jvm, scautable.js )

override def scalaDocOptions = super.scalaDocOptions() ++ Seq(
"-scastie-configuration", """libraryDependencies += "io.github.quafadas" %% "scautable" % "0.0.5"""",
"-scastie-configuration", s"""libraryDependencies += "io.github.quafadas" %% "scautable" % "${latestVersion()}"}"""",
"-project", "scautable",
"-project-version", VcsVersion.vcsState().lastTag.getOrElse("0.0.0").replace("v", ""),
"-project-version", latestVersion(),
s"-social-links:github::${scautable.jvm.pomSettings().url}"
)

}
4 changes: 1 addition & 3 deletions site/docs/_docs/GettingStarted.mdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ title: Getting Started

```

# Elevator Pitch - {{projectTitle}}

{{projectVersion}}
# Elevator Pitch

```scala mdoc
import scautable.{*, given}
Expand Down

0 comments on commit fe24fa8

Please sign in to comment.