Skip to content

Commit 74207e4

Browse files
update
1 parent e38480c commit 74207e4

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,29 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
- name: Setup Ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: '3.2'
27+
bundler-cache: true
2328
- name: Setup Pages
29+
id: pages
2430
uses: actions/configure-pages@v4
2531
- name: Build with Jekyll
26-
uses: actions/jekyll-build-pages@v1
27-
with:
28-
source: ./docs
29-
destination: ./_site
32+
run: |
33+
cd docs
34+
bundle install
35+
bundle exec jekyll build
36+
env:
37+
JEKYLL_ENV: production
38+
- name: Test HTML
39+
run: |
40+
cd docs
41+
bundle exec htmlproofer ./_site --disable-external --checks html,links,images,scripts --allow-hash-href
3042
- name: Upload artifact
3143
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: docs/_site
3246

3347
deploy:
3448
environment:

0 commit comments

Comments
 (0)