Skip to content

Commit f167c67

Browse files
committed
setup pages after setup ruby and better way to change working directory of a run command
1 parent d69915e commit f167c67

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-and-deploy-docs.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,21 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v4
29-
- name: Setup Pages
30-
id: pages
31-
uses: actions/configure-pages@v5
3229
- name: Setup Ruby
3330
uses: ruby/setup-ruby@v1
3431
with:
3532
ruby-version: "3.3"
3633
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3734
working-directory: docs
35+
- name: Setup Pages
36+
id: pages
37+
uses: actions/configure-pages@v5
3838
- name: Build with Jekyll
3939
# Outputs to the 'docs/_site' directory
40-
run: |
41-
cd docs
42-
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4340
env:
4441
JEKYLL_ENV: production
42+
working-directory: docs
43+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4544
- name: Upload artifact
4645
# Uploads artifact from the 'docs/_site' directory
4746
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)