From a3f1f6699ed488c6a9c9088c7a959da7649d29d5 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Fri, 22 Mar 2024 17:26:20 +0100 Subject: [PATCH] Build the current docs on master (#184) Signed-off-by: Phil Ewels --- .github/workflows/build.yml | 3 +++ build_docs.sh | 7 +++++++ src/components/Menu.astro | 5 +++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9baf7f6..acefea5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,9 @@ on: branches: - master pull_request: + workflow_dispatch: + schedule: + - cron: "0 1 * * *" # Daily, 1am jobs: build: diff --git a/build_docs.sh b/build_docs.sh index f83d1093..8c33ccf9 100644 --- a/build_docs.sh +++ b/build_docs.sh @@ -9,6 +9,7 @@ WEBSITE_DIR=$(pwd) # Make the empty target directories mkdir -p output/docs/latest/ mkdir -p output/docs/edge/ +mkdir -p output/docs/master/ # Fetch the Nextflow repo git clone https://github.com/nextflow-io/nextflow.git @@ -35,3 +36,9 @@ git checkout $STABLE_TAG pip install -r requirements.txt make clean html mv _build/html/* $WEBSITE_DIR/output/docs/latest/ + +# Build current docs on master +git checkout master +pip install -r requirements.txt +make clean html +mv _build/html/* $WEBSITE_DIR/output/docs/master/ diff --git a/src/components/Menu.astro b/src/components/Menu.astro index e5e190ca..06e2b9f1 100644 --- a/src/components/Menu.astro +++ b/src/components/Menu.astro @@ -56,8 +56,9 @@ const scrollClass = isHomepage ? ["scroll"] : [];