From 1cde82aecb55f7794aaf563a1f6dc685ce889c91 Mon Sep 17 00:00:00 2001 From: Scalameta Bot Date: Fri, 15 Dec 2023 00:40:18 +0000 Subject: [PATCH 1/2] Update mdoc, sbt-mdoc to 2.5.1 --- project/plugins.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index e9ce4217..99a0a583 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") -addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.8") +addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.1") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") From 4aaa284ce3e297a3dbf8605c522f0030078abd72 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Fri, 15 Dec 2023 18:18:28 +0100 Subject: [PATCH 2/2] chore: Update usages of mdoc to run Java 11 --- .github/workflows/ci.yml | 2 +- .github/workflows/release-website.yml | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 1 - 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-website.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47506766..7453bfe3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,7 +114,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: temurin - java-version: 8 + java-version: 11 cache: sbt - run: sbt scalafixCheckAll - run: sbt docs/docusaurusCreateSite diff --git a/.github/workflows/release-website.yml b/.github/workflows/release-website.yml new file mode 100644 index 00000000..2ac625ae --- /dev/null +++ b/.github/workflows/release-website.yml @@ -0,0 +1,22 @@ +name: Release website +on: + push: + branches: [main] + tags: ["*"] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + cache: sbt + - run: git fetch --unshallow + - name: Publish website for ${{ github.ref }} + run: | + sbt docs/docusaurusPublishGhpages + env: + GIT_USER: munit@scalameta.org + GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1af878b1..7ad6df94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,6 @@ jobs: - name: Publish ${{ github.ref }} run: | sbt ci-release - sbt docs/docusaurusPublishGhpages env: GIT_USER: munit@scalameta.org PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}