Skip to content

Commit 2f3ba7e

Browse files
author
Dominikus Nold
committed
Fix github pages setup
1 parent 39ccd4c commit 2f3ba7e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/github-pages.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- dev
78
paths:
89
- 'docs/**'
910
- '.github/workflows/github-pages.yml'
@@ -36,24 +37,27 @@ jobs:
3637
- name: Setup Ruby (for Jekyll)
3738
uses: ruby/setup-ruby@v1
3839
with:
39-
ruby-version: '3.1'
40-
bundler-cache: true
40+
ruby-version: '3.2'
41+
bundler-cache: false
4142
working-directory: ./docs
4243

4344
- name: Install Jekyll dependencies
4445
run: |
4546
cd docs
46-
bundle install
47+
bundle config set --local path 'vendor/bundle'
48+
bundle install --jobs 1 --retry 3
4749
4850
- name: Copy root files to docs
4951
run: |
5052
# Copy important root files to docs directory for inclusion in GitHub Pages
5153
cp LICENSE.md docs/LICENSE.md
5254
cp TRADEMARKS.md docs/TRADEMARKS.md
55+
cp _config.yml docs/_config.yml
5356
5457
- name: Build with Jekyll
5558
run: |
56-
jekyll build --source docs --destination _site
59+
cd docs
60+
jekyll build --destination ../_site
5761
env:
5862
JEKYLL_ENV: production
5963

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ exclude:
3939

4040
# Source and destination (Jekyll will look for files in docs/)
4141
# Note: For GitHub Pages, Jekyll typically expects source in root or docs/
42-
source: docs
42+
# When _config.yml is in docs/, source should be "." (current directory)
43+
source: .
4344
destination: _site
4445

4546
# Defaults

0 commit comments

Comments
 (0)