Skip to content

Commit

Permalink
Migrate to Cloudflare Pages
Browse files Browse the repository at this point in the history
For cheaper hosting; and provides quicker response times for visitors
outside of the UK.
  • Loading branch information
lah7 committed Dec 18, 2024
1 parent 238170b commit 6c74a48
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 53 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on: [push, pull_request]

jobs:
proofing:
name: Proofing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Build
run: JEKYLL_ENV=production bundle exec jekyll build

- name: Check for problems
run: scripts/test.sh
5 changes: 1 addition & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@

cd "$(dirname "$0")"/../

if [ -z "$JEKYLL_ENV" ]; then
export JEKYLL_ENV=production
fi

export JEKYLL_ENV=production
bundle exec jekyll build
12 changes: 0 additions & 12 deletions scripts/deploy.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
cd "$(dirname $0)/../"

bundle exec htmlproofer \
--only-4xx \
--ignore-status-codes 429,500 \
--ignore-urls github.com \
--ignore-files ./_site/translations/index.html \
--log-level debug \
./_site
exit $?

0 comments on commit 6c74a48

Please sign in to comment.