Skip to content

Commit bc44443

Browse files
committed
Refactor GitHub Actions workflow for PR previews and enhance Jekyll configuration with navigation links; remove obsolete staging files and add test staging post.
1 parent 3f06436 commit bc44443

9 files changed

Lines changed: 152 additions & 136 deletions

.github/workflows/preview.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,45 @@ on:
99
- closed
1010

1111
permissions:
12-
contents: write
13-
pull-requests: write
12+
contents: read
13+
pages: write
14+
id-token: write
1415

15-
concurrency: preview-${{ github.ref }}
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
1619

1720
jobs:
18-
deploy-preview:
21+
build:
1922
runs-on: ubuntu-latest
2023
steps:
2124
- name: Checkout
2225
uses: actions/checkout@v4
23-
26+
2427
- name: Setup Ruby
2528
uses: ruby/setup-ruby@v1
2629
with:
2730
ruby-version: '3.1'
2831
bundler-cache: true
29-
30-
- name: Build Jekyll site
31-
if: github.event.action != 'closed'
32-
run: |
33-
# Remove CNAME file for previews to avoid routing conflicts
34-
rm -f CNAME
35-
bundle exec jekyll build
32+
33+
- name: Build with Jekyll
34+
run: bundle exec jekyll build
3635
env:
3736
JEKYLL_ENV: production
38-
39-
- name: Deploy preview
40-
uses: rossjrw/pr-preview-action@v1
37+
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
4140
with:
42-
source-dir: ./_site
43-
preview-branch: gh-pages
44-
umbrella-dir: pr-preview
41+
path: ./_site
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4
53+

_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ dash:
2828
show_author: true
2929
avatar_source: "local"
3030
avatar_path: "/assets/avatar.gif"
31+
show_nav: true
32+
nav_links:
33+
- url: /about
34+
title: About
35+
- url: /archive
36+
title: Archive
37+
- url: /tags
38+
title: Tags
3139
social_links:
3240
- url: https://github.com/devnomadic
3341
icon: github

_config_preview.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

_posts/2025-06-08-remote-development-environment.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ tags: remote-work development tools productivity vscode docker
88

99
# Creating Your Remote Development Paradise
1010

11+
## 📝 TL;DR
12+
13+
Complete guide to **setting up a productive remote development environment** for digital nomads:
14+
15+
**Hardware Essentials:**
16+
- 💻 **MacBook Pro M3** (16GB+ RAM) + portable monitor
17+
- ⌨️ **Compact mechanical keyboard** + wireless mouse
18+
19+
**Software Stack:**
20+
- 🔧 **VS Code** with Remote Development extensions
21+
- 🐳 **Docker** for consistent environments
22+
- ☁️ **Cloud services** (GitHub Codespaces, AWS Cloud9)
23+
- 🔒 **VPN** + secure backup solutions
24+
25+
**Key Tips:** Prioritize battery life, internet reliability, and portable ergonomics!
26+
27+
---
28+
1129
Working remotely as a developer requires a carefully crafted environment that enables productivity from anywhere in the world. Here's my guide to setting up the perfect remote development setup.
1230

1331
## Essential Hardware

_posts/2025-06-09-welcome-to-devnomadic.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ tags: introduction devnomad remote-work digital-nomad software-engineering trave
88

99
# Welcome to my digital nomad journey!
1010

11+
## 📝 TL;DR
12+
13+
🚀 **Starting devnomadic** - a blog documenting my journey as a software engineer embracing the digital nomad lifestyle.
14+
15+
**What you'll find here:**
16+
- 🔧 **Technical tutorials** & best practices
17+
- 🌍 **Remote work insights** from distributed teams
18+
- ✈️ **Travel stories** from a developer's perspective
19+
- 📱 **Tool recommendations** for nomadic developers
20+
21+
Join me as I explore the intersection of **code, travel, and remote work**!
22+
23+
---
24+
1125
Hello and welcome to devnomadic! This blog represents the beginning of documenting my journey as a software engineer embracing the digital nomad lifestyle.
1226

1327
## Why devnomadic?

_posts/2025-06-10-albatross.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ tags: BlazorWebAssembly CloudflareWorkers DevSecOps WebDevelopment CyberSecurity
1010

1111
*Published: June 9, 2025*
1212

13+
## 📝 TL;DR
14+
15+
Built **Albatross**, a secure IP abuse checker using Blazor WebAssembly + Cloudflare Workers. Key features:
16+
- 🔐 **Secure API proxy** with HMAC authentication (no exposed API keys)
17+
-**Fast client-side app** with server-side API protection
18+
- 🛡️ **Real-time IP reputation checking** via AbuseIPDB
19+
- 🏗️ **Modern architecture** combining the best of client and edge computing
20+
21+
**Tech Stack:** Blazor WASM, Cloudflare Workers, HMAC-SHA256, AbuseIPDB API
22+
23+
---
24+
1325
In an era where cybersecurity threats are constantly evolving, having reliable tools to check IP addresses for malicious activity has become essential. Today, I'm excited to share the journey of building **Albatross** - a secure, modern web application that leverages the AbuseIPDB API to provide real-time IP abuse checking through a sophisticated architecture combining Blazor WebAssembly and Cloudflare Workers.
1426

1527
## The Challenge: Secure API Proxy Architecture

assets/css/custom.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,47 @@
6666
color: #202124;
6767
line-height: 1.5;
6868
}
69+
70+
/* Remove text justification on mobile devices */
71+
@media (max-width: 768px) {
72+
body, p, div, article, section {
73+
text-align: left !important;
74+
}
75+
76+
/* Specifically target post content */
77+
.post-content,
78+
.post-body,
79+
.content,
80+
.post-excerpt {
81+
text-align: left !important;
82+
}
83+
}
84+
85+
/* TLDR section styling */
86+
.post-content h2:has(+ p):where(:contains("TL;DR"), :contains("TLDR")),
87+
.post-content h2 + p:has-text("📝 TL;DR") {
88+
background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
89+
border-left: 4px solid #4285f4;
90+
padding: 1.5rem;
91+
margin: 1.5rem 0;
92+
border-radius: 8px;
93+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
94+
}
95+
96+
/* Alternative approach - target by content */
97+
.post-content > h2 + p:first-of-type,
98+
.post-content h2 + p {
99+
background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
100+
border-left: 4px solid #4285f4;
101+
padding: 1.5rem;
102+
margin: 1.5rem 0;
103+
border-radius: 8px;
104+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
105+
}
106+
107+
/* TLDR heading style */
108+
.post-content h2:contains("TL;DR") {
109+
color: #4285f4;
110+
font-size: 1.1rem;
111+
margin-bottom: 0.5rem;
112+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: post
3+
title: "Test Staging Post"
4+
date: 2025-06-10 12:00:00 -0500
5+
tags: [test, staging]
6+
---
7+
8+
# Test Staging Post
9+
10+
This is a test post that lives directly in the staging directory.
11+
12+
## Purpose
13+
14+
This post is used to test the staging preview system:
15+
16+
- It's a real blog post with proper front matter
17+
- It lives in the `staging/` directory
18+
- It will be built as part of the staging collection
19+
- It appears in the preview site
20+
21+
## Content
22+
23+
This is just sample content to verify that:
24+
25+
1. Jekyll can build staging posts
26+
2. The staging collection works
27+
3. Posts appear in the preview deployment
28+
29+
When this works, we know the staging system is functioning correctly!

staging/index.md

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)