mirror of
https://github.com/cotes2020/chirpy-starter.git
synced 2025-07-07 23:08:59 +10:00
Support project sites for github pages
See also: - https://github.com/gjtorikian/html-proofer?tab=readme-ov-file#adjusting-for-a-baseurl - https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#types-of-github-pages-sites
This commit is contained in:
9
.github/workflows/pages-deploy.yml
vendored
9
.github/workflows/pages-deploy.yml
vendored
@ -46,20 +46,19 @@ jobs:
|
||||
bundler-cache: true
|
||||
|
||||
- name: Build site
|
||||
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
|
||||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
||||
env:
|
||||
JEKYLL_ENV: "production"
|
||||
|
||||
- name: Test site
|
||||
run: |
|
||||
bundle exec htmlproofer _site \
|
||||
\-\-disable-external=true \
|
||||
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
|
||||
--disable-external=true \
|
||||
--ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/" \
|
||||
--swap-urls "^${{ steps.pages.outputs.base_path }}/:/"
|
||||
|
||||
- name: Upload site artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: "_site${{ steps.pages.outputs.base_path }}"
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user