Skip to content

Commit 193b6ce

Browse files
committed
wip: copy page build from pages job
1 parent 216d6b7 commit 193b6ce

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/lint-html.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,32 @@ jobs:
5151
- name: Install npm dependencies
5252
run: npm ci
5353

54+
# Related to GCWeb#1737 about wet-boew#cc340a6 commit
55+
- name: Copy the missing _sprite_share.scss file
56+
run: |
57+
curl https://gist.githubusercontent.com/duboisp/d69787b300eb1f4d40f937508e10d013/raw/86e7a0b15ad6a695754599e9793e986b460bf514/_sprites_share.scss >> _sprites_share.scss
58+
mv _sprites_share.scss node_modules/wet-boew/src/plugins/share/sprites/_sprites_share.scss
59+
60+
- name: Build GCWeb
61+
run: grunt build-gh-pages
62+
63+
# Overwrite all layout and includes and remove dist from .gitignore
64+
- name: Update GCWeb Jekyll theme files
65+
run: |
66+
cp -R ~jekyll-dist/_includes/* _includes/
67+
cp -R ~jekyll-dist/_layouts/* _layouts/
68+
69+
- name: Setup Pages
70+
id: pages
71+
uses: actions/configure-pages@v5
72+
73+
# Generate all the Jekyll files and push to ./_site
74+
- name: Build with Jekyll
75+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
76+
env:
77+
JEKYLL_ENV: production
5478
- name: HTMLlint
5579
run: grunt htmllint
5680

57-
- name: Jekyll Build
58-
run: bundle exec jekyll build
59-
6081
- name: HTMLProofer
6182
run: bundle exec rake

0 commit comments

Comments
 (0)