Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/gh-jekyll-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main", "redesign"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: false
- name: Install dependencies
run: bundle install
- name: Build with Jekyll (with custom plugins)
run: bundle exec jekyll build --trace
env:
JEKYLL_ENV: production
- name: Check JavaScript
run: |
node --check assets/js/extra.js
node tests/shop-js-test.js
- name: Check generated HTML and internal links
run: bundle exec htmlproofer ./_site --disable-external
- name: Verify Shop output and source invariants
run: bundle exec ruby tools/verify-site.rb ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
31 changes: 31 additions & 0 deletions .github/workflows/site-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Site checks

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
ruby-version: "3.3"
- name: Install dependencies
run: bundle install
- name: Check JavaScript
run: |
node --check assets/js/extra.js
node tests/shop-js-test.js
- name: Build site
run: bundle exec jekyll build
- name: Check generated HTML and internal links
run: bundle exec htmlproofer ./_site --disable-external
- name: Verify Shop output and source invariants
run: bundle exec ruby tools/verify-site.rb ./_site
Loading
Loading