From 1934a9ba911ad2d2c5fdd9b35dcffdcfb0612d18 Mon Sep 17 00:00:00 2001 From: Patricia Martinez Tilve Date: Mon, 18 Aug 2025 10:28:38 +0200 Subject: [PATCH 1/4] Updated wf release --- .github/workflows/docs-release.yml | 38 +++++++++++++++++------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index 606c39b26..d8d9cb339 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -37,26 +37,32 @@ jobs: echo "TARGET_PATH=$TARGET_PATH" >> "$GITHUB_ENV" BASELINE_BRANCH=${{ github.event.inputs.BASELINE || github.ref }} echo "BASELINE_BRANCH=${BASELINE_BRANCH#refs/heads/}" >> "$GITHUB_ENV" - - - uses: actions/checkout@v4 + - name: Checkout baseline branch + uses: actions/checkout@v4 with: ref: ${{ env.BASELINE_BRANCH }} fetch-depth: 0 - - name: Bundler Cache - uses: actions/cache@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- + ruby-version: '3.1' + bundler-cache: true - - name: Jekyll - uses: helaili/jekyll-action@master + - name: Install dependencies + run: bundle install + + - name: Build site with Jekyll + run: | + bundle exec jekyll build \ + --baseurl "/docs/${{ env.TARGET_PATH }}" \ + --config _config.yml,_config.deploy.yml + + - name: Deploy to gh-pages branch + uses: peaceiris/actions-gh-pages@v4 with: - jekyll_env: deploy - jekyll_build_options: --baseurl /docs/${{ env.TARGET_PATH }} --config _config.yml,_config.deploy.yml - target_branch: gh-pages - target_path: ${{ env.TARGET_PATH }} - keep_history: true - token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + publish_branch: gh-pages + destination_dir: docs/${{ env.TARGET_PATH }} + keep_files: true From 902174e92a0c9e1c765d02c401f5b88a10eef6c4 Mon Sep 17 00:00:00 2001 From: Patricia Martinez Tilve Date: Mon, 18 Aug 2025 10:32:02 +0200 Subject: [PATCH 2/4] Updated ruby version --- .github/workflows/docs-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index d8d9cb339..ea7787567 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -46,7 +46,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.1' + ruby-version: '3.2' bundler-cache: true - name: Install dependencies From eb3eeaf891985a3d3e0a75b21860c051ab241078 Mon Sep 17 00:00:00 2001 From: Patricia Martinez Tilve Date: Mon, 18 Aug 2025 11:41:03 +0200 Subject: [PATCH 3/4] Updated workflow --- .github/workflows/docs-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index ea7787567..12e809aa8 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -55,7 +55,7 @@ jobs: - name: Build site with Jekyll run: | bundle exec jekyll build \ - --baseurl "/docs/${{ env.TARGET_PATH }}" \ + --baseurl "/${{ env.TARGET_PATH }}" \ --config _config.yml,_config.deploy.yml - name: Deploy to gh-pages branch From 38fde833ba63a8943f56360b52ec9d0258714fb0 Mon Sep 17 00:00:00 2001 From: Patricia Martinez Tilve Date: Mon, 18 Aug 2025 11:45:51 +0200 Subject: [PATCH 4/4] Updated workflow --- .github/workflows/docs-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index 12e809aa8..eddc3bb85 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -55,7 +55,7 @@ jobs: - name: Build site with Jekyll run: | bundle exec jekyll build \ - --baseurl "/${{ env.TARGET_PATH }}" \ + --baseurl "/docs/${{ env.TARGET_PATH }}" \ --config _config.yml,_config.deploy.yml - name: Deploy to gh-pages branch @@ -64,5 +64,5 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_site publish_branch: gh-pages - destination_dir: docs/${{ env.TARGET_PATH }} + destination_dir: ${{ env.TARGET_PATH }} keep_files: true