From eef62bb93ae3997e4e8bb32a4cc23385bd2f3da8 Mon Sep 17 00:00:00 2001 From: Michel Davit Date: Tue, 9 Jan 2024 15:44:30 +0100 Subject: [PATCH] Skip artifact and dependency publish for site and docs (#881) --- .github/workflows/ci.yml | 6 +++--- build.sbt | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 766ced322..b5dbb7e8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,11 +95,11 @@ jobs: - name: Make target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') - run: mkdir -p refined/target shared/target unidocs/target tensorflow/target parquet/target site/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target + run: mkdir -p refined/target shared/target tensorflow/target parquet/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target - name: Compress target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') - run: tar cf targets.tar refined/target shared/target unidocs/target tensorflow/target parquet/target site/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target + run: tar cf targets.tar refined/target shared/target tensorflow/target parquet/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target - name: Upload target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') @@ -246,7 +246,7 @@ jobs: - name: Submit Dependencies uses: scalacenter/sbt-dependency-submission@v2 with: - modules-ignore: test_3 test_2.13 test_2.12 magnolify_3 magnolify_2.13 magnolify_2.12 magnolify_3 magnolify_2.13 magnolify_2.12 magnolify_3 magnolify_2.13 magnolify_2.12 + modules-ignore: test_3 test_2.13 test_2.12 magnolify-docs_2.13 magnolify_3 magnolify_2.13 magnolify_2.12 site_2.13 site_2.12 magnolify_3 magnolify_2.13 magnolify_2.12 magnolify_3 magnolify_2.13 magnolify_2.12 configs-ignore: test scala-tool scala-doc-tool test-internal validate-steward: diff --git a/build.sbt b/build.sbt index 9d169e4f6..03be51673 100644 --- a/build.sbt +++ b/build.sbt @@ -665,6 +665,7 @@ lazy val jmh: Project = project lazy val site = project .in(file("site")) .enablePlugins( + NoPublishPlugin, ParadoxSitePlugin, ParadoxMaterialThemePlugin, GhpagesPlugin, @@ -691,7 +692,6 @@ lazy val site = project .settings( description := "Magnolify - Documentation", fork := false, - publish / skip := true, autoAPIMappings := true, gitRemoteRepo := "git@github.com:spotify/magnolify.git", // mdoc @@ -720,7 +720,10 @@ lazy val site = project lazy val unidocs = project .in(file("unidocs")) - .enablePlugins(TypelevelUnidocPlugin) + .enablePlugins( + NoPublishPlugin, + TypelevelUnidocPlugin + ) .settings(commonSettings) .settings( moduleName := "magnolify-docs",