From 3eab963bf31404e0f42d7db23af3911f1c6e8583 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 19 Sep 2024 11:39:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(main.yml):=20add=20additional?= =?UTF-8?q?=20Jekyll=20build=20step=20and=20upload=20artifact?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a new step to build the site with Jekyll into a different directory (`./_site2/`) and upload it as a separate artifact. This allows for parallel builds or testing different configurations without interfering with the primary build. The commented-out Jekyll build action is retained for potential future use. --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acebe9a8d..60eefbc5c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -371,6 +371,17 @@ jobs: with: name: AzureDevOpsMigrationTools-Site path: ./_site/**/* + - name: Build with Jekyll 2 + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --destination ./_site2/ + env: + JEKYLL_ENV: production + # - name: Build Jekyll + # uses: jerryjvl/jekyll-build-action@v1 + - uses: actions/upload-artifact@v4 + with: + name: AzureDevOpsMigrationTools-Site2 + path: ./_site2/**/* # GitHubRelease