Commit 959fbec
Modernize build/deploy: Jekyll 4.4, GitHub Actions, GitHub Pages (#99)
* Modernize build/deploy: Jekyll 4.4, GitHub Actions, GitHub Pages
- Upgrade Jekyll 3.8.5 -> 4.4.1, pin Ruby 3.2.0, refresh gem dependencies
and add x86_64-linux to the lockfile so CI can install on Linux runners
- Add bundler-audit as a dev dependency; no known CVEs found
- Fix scripts/test: htmlproofer was silently checking zero pages because
the shell's missing LANG made Ruby default to US-ASCII; also drop the
https-enforcement noise on old post links and ignore confirmed-dead
external URLs
- Retire the dead Travis CI / rsync-to-jaysinh.com pipeline (.travis.yml,
scripts/deploy, CNAME, keypair.pem.enc) since that domain is no longer
owned; the site now targets https://ultimatecoder.github.io/Blog/ with
the matching /Blog baseurl
- Add .github/workflows/ci.yml (build + link-check on PRs) and
pages.yml (build + deploy to GitHub Pages on push to master)
* Ignore two more external links that block GitHub Actions' IPs
pythonexpress.in and hackerearth.com both return 200 from a normal
network but 403 specifically from GitHub-hosted runner IPs (bot/WAF
blocking, not a dead link) - confirmed via the ci.yml failure on PR #99.
* Address PR review: fail-fast, security scan, minifier, image baseurl fix
- scripts/build & scripts/test: add set -euo pipefail (and a shebang to
scripts/test) so a failed build aborts CI instead of link-checking a
stale _site (review #1)
- scripts/test: move the --ignore-urls list into a documented bash array
(review #5); note the baseurl<->swap-urls coupling in _config.yml (#6)
- ci.yml: run bundle exec bundler-audit check --update as a real per-PR
security scan (#2); add least-privilege permissions: contents: read (#3)
- Pin all workflow actions to commit SHAs with version comments (#4)
- Re-add minification via jekyll-minifier 0.2.2 (Jekyll 4-compatible,
production-only) (#7)
- Drop analytics: remove the leftover GA placeholder; UA died in 2023 (#8)
- Fix 45 image references across 11 posts + about.md that used
{{site.url}}/assets or hardcoded /assets and omitted baseurl, so they
404'd on the /Blog project-page URL. Verified via a production
(minified) build + htmlproofer run with all internal links resolving.
---------
Co-authored-by: Jaysinh Shukla <jaysinhshukla@Jaysinhs-MacBook-Pro-2.local>1 parent 13f91cf commit 959fbec
28 files changed
Lines changed: 322 additions & 192 deletions
File tree
- .github/workflows
- _posts
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 3 | + | |
| 4 | + | |
13 | 5 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 6 | + | |
| 7 | + | |
17 | 8 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
21 | 12 | | |
22 | | - | |
| 13 | + | |
23 | 14 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
28 | 20 | | |
0 commit comments