From 5f044a048a8c1b5f96e99e75eb91435ad3921e2a Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 29 Jul 2024 11:09:57 +0100 Subject: [PATCH] setup a branch build --- .github/workflows/jekyll.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 4295399..38f3684 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -50,7 +50,7 @@ jobs: run: npm clean-install - name: Build with Jekyll # Outputs to the './_site' directory by default - run: bundle exec jekyll build --trace --baseurl "${{ steps.pages.outputs.base_path }}" + run: bundle exec jekyll build --trace --baseurl "${{ github.ref_name == github.event.repository.default_branch && steps.pages.outputs.base_path || github.ref_name}}" env: JEKYLL_ENV: production - name: Upload artifact