Skip to content

Commit 5c5405a

Browse files
authored
Fix paths and working directory in GitHub Actions
1 parent 365833d commit 5c5405a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/pages.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,24 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22+
2223
- uses: ruby/setup-ruby@v1
2324
with:
24-
ruby-version: '3.3' # or any supported version
25+
ruby-version: '3.3'
2526
bundler-cache: true
27+
working-directory: jekyll-site
28+
2629
- name: Install dependencies
27-
run: |
28-
bundle install
30+
working-directory: jekyll-site
31+
run: bundle install
32+
2933
- name: Build with Jekyll
3034
uses: actions/jekyll-build-pages@v1
3135
with:
32-
source: .
36+
# IMPORTANT: paths are relative to repo root
37+
source: ./jekyll-site
3338
destination: ./_site
39+
3440
- name: Upload artifact
3541
uses: actions/upload-pages-artifact@v3
3642
with:

0 commit comments

Comments
 (0)