Skip to content

Commit

Permalink
Updated chirpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
create3000 committed May 15, 2024
1 parent 4ffbb65 commit 7ee8cef
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: "Build and Deploy Pages"
name: "Build and Deploy"
on:
push:
branches:
- main
paths:
- docs/**
- master
paths-ignore:
- .gitignore
- README.md
- LICENSE

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -34,23 +37,29 @@ jobs:

- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3
ruby-version: 3.3
bundler-cache: true

- name: Build site
run: cd ./docs && bundle install && bundle exec jekyll b
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: "production"

- name: Test site
run: |
bundle exec htmlproofer _site \
\-\-disable-external \
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
- name: Upload site artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: "./docs/_site"
path: "_site${{ steps.pages.outputs.base_path }}"

deploy:
environment:
Expand All @@ -61,4 +70,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit 7ee8cef

Please sign in to comment.