From 25b15995e76001ed81049fdb3f1e1178e2e350ef Mon Sep 17 00:00:00 2001 From: Yusef Aslam Date: Fri, 4 Jul 2025 10:37:21 +0100 Subject: [PATCH] .github: jekyll.yml: edit workflow to build and deploy from subdirectory --- .github/workflows/jekyll.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 062315869..af5448869 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -43,19 +43,26 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 + - name: Setup Jekyll + run: bundle install + working-directory: ./website - name: Build with Jekyll # Outputs to the './_site' directory by default - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + run: bundle exec jekyll build --baseurl "/website" + working-directory: ./website env: JEKYLL_ENV: production - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3 + with: + name: github-pages + path: "./website/_site" # Deployment job deploy: environment: - name: github-pages + name: xlibre_website url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build