Skip to content

Commit f53ec1d

Browse files
authored
Use Github Actions to deploy to Pages (#7)
* deploy to github pages * add bundle install * set branches to master
1 parent 3dc41ad commit f53ec1d

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: '2.5.3'
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '18'
24+
25+
- name: Install dependencies
26+
run: |
27+
bundle install
28+
yarn install
29+
30+
- name: Setup outbound link tracking
31+
run: |
32+
npm install -g autotrack
33+
mkdir -p src/_assets/vendor/ga
34+
autotrack -o src/_assets/vendor/ga/out.js -p outboundLinkTracker
35+
36+
- name: Build Jekyll
37+
run: bundle exec jekyll build --config _config.yml,_config.production.yml --trace
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: ./www
43+
44+
deploy:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
permissions:
48+
pages: write
49+
id-token: write
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

src/_posts/2025-11-12-cobwebs.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: post
3+
title: "Clearing out the cobwebs"
4+
date: 2025-11-12
5+
categories: updates
6+
---
7+
8+
**Out with the old.** When this post is published, it will mark the end of a chapter for burden.cc. One where production was a `git pull origin master` directly on a DigitalOcean droplet.
9+
10+
**In with the new**. Today, I have the CDN itch. It's actually been on the task list since 2020 and it's really about shouldering the hosting and administrative burden onto someone else, since hosting a static site from a VPS feels like playing with fire.
11+
12+
So let's fix that. Github Pages is going to scratch the CDN itch.
13+
14+
Here's the rub. I'm already using Github Pages for a stage.
15+
16+
Netlify offers some interesting solutions for branch deploys, so I'm going to give them a shot. I have it setup so that when I push to the `staging` branch, I get a deploy. Also when I push to branches prefixed with `wip-`.
17+
18+
**tl;dr**
19+
Removed: Travis CI, and Bower
20+
Added: Netlify, Yarn
21+
22+
You won't, but [stay tuned](https://burden.cc/feed.xml) for more updates. I don't like the way Netlify is currently configured to deploy, and I would love to get some checks in place.

0 commit comments

Comments
 (0)