From 1d8fae7138fe55acbffad852d76b7ac44e23454e Mon Sep 17 00:00:00 2001 From: danicheg Date: Thu, 3 Feb 2022 13:40:50 +0300 Subject: [PATCH] Publish site only from main branch --- .github/workflows/ci.yml | 2 +- build.sbt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4158bf7..c3dff13a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -267,7 +267,7 @@ jobs: run: sbt '++${{ matrix.scala }}' docs/tlSite - name: Publish site - if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v3.8.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.sbt b/build.sbt index fc6311f2..6520fb99 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,6 @@ ThisBuild / tlBaseVersion := "1.5" ThisBuild / crossScalaVersions := Seq(Scala213, Scala212, Scala3) ThisBuild / scalaVersion := Scala213 ThisBuild / startYear := Some(2018) -ThisBuild / tlSitePublishBranch := None ThisBuild / tlCiReleaseBranches := Seq() ThisBuild / developers := List( Developer(