Skip to content

Commit

Permalink
Update site metadata for 0.8 (#781)
Browse files Browse the repository at this point in the history
* Update site metadata for 0.8

* Update docs/index.html

Co-authored-by: Arman Bilge <[email protected]>
  • Loading branch information
amesgen and armanbilge authored Nov 20, 2022
1 parent a037d3a commit 5284405
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ jobs:
run: sbt '++ ${{ matrix.scala }}' unusedCompileDependenciesTest

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.7')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.8')
run: mkdir -p target core/target site/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.7')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.8')
run: tar cf targets.tar target core/target site/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.7')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.8')
uses: actions/upload-artifact@v2
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
Expand All @@ -131,7 +131,7 @@ jobs:
publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.7')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.8')
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
run: sbt '++ ${{ matrix.scala }}' docs/tlSite

- name: Publish site
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/series/0.7'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/series/0.8'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ ThisBuild / developers := List(

ThisBuild / tlJdkRelease := Some(11)
ThisBuild / githubWorkflowJavaVersions := Seq("11", "17").map(JavaSpec.temurin(_))
ThisBuild / tlCiReleaseBranches := Seq("series/0.7")
ThisBuild / tlSitePublishBranch := Some("series/0.7")
ThisBuild / tlCiReleaseBranches := Seq("series/0.8")
ThisBuild / tlSitePublishBranch := Some("series/0.8")

lazy val docsSettings =
Seq(
Expand All @@ -94,8 +94,9 @@ lazy val docsSettings =
import laika.rewrite._
_.site.versions(
Versions(
currentVersion = Version("0.7.x", "0.7"),
currentVersion = Version("0.8.x", "0.8"),
olderVersions = Seq(
Version("0.7.x", "0.7"),
Version("0.6.x", "0.6.0-M7"),
Version("0.5.x", "0.5.0"),
Version("0.4.x", "0.4.0")
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; URL=0.7">
<link rel="canonical" href="0.7">
<meta http-equiv="refresh" content="0; URL=0.8">
<link rel="canonical" href="0.8">

0 comments on commit 5284405

Please sign in to comment.