Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
eafa430
Add robots.txt to manage web crawler access and sitemap location & al…
devnomadic Jun 9, 2025
852d754
Remove unnecessary comments and trailing newlines from remote develop…
devnomadic Jun 9, 2025
f02456b
Fix preview deployment permissions by using peaceiris/actions-gh-pages
devnomadic Jun 9, 2025
4513c48
Refactor preview deployment workflow to enhance directory structure a…
devnomadic Jun 9, 2025
8d68396
Refactor preview deployment workflow for improved clarity and functio…
devnomadic Jun 9, 2025
c594a1c
Enable live preview deployment to /preview/ paths
devnomadic Jun 9, 2025
17b45eb
Add explicit contents:write permissions to preview workflow jobs
devnomadic Jun 9, 2025
6305694
Remove CNAME file from preview builds to fix routing conflicts
devnomadic Jun 9, 2025
1f419e4
Refactor preview deployment workflow: update permissions, streamline …
devnomadic Jun 9, 2025
c284e6e
Implement PR preview deployment using direct gh-pages approach
devnomadic Jun 10, 2025
510e63b
Add test file for PR preview
devnomadic Jun 10, 2025
6c1a2f4
Fix GitHub Pages deployment - remove conflicting workflow and simplif…
devnomadic Jun 10, 2025
491805c
Remove deprecated GitHub Actions workflows for deployment and PR prev…
devnomadic Jun 10, 2025
67d6eda
Fix PR preview workflow: add permissions, use ubuntu-latest, update c…
devnomadic Jun 10, 2025
159b05f
Exclude CNAME file from PR previews to fix routing conflicts
devnomadic Jun 10, 2025
eb2dc6d
Remove CNAME and add GitHub Pages SPA redirect workaround
devnomadic Jun 10, 2025
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build and deploy Jekyll site to GitHub Pages
name: Deploy to GitHub Pages

on:
push:
branches:
- master
branches: [ master ]

permissions:
contents: read
Expand All @@ -27,13 +26,8 @@ jobs:
ruby-version: '3.1'
bundler-cache: true

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
run: |
bundle exec jekyll build --destination ./_site
run: bundle exec jekyll build
env:
JEKYLL_ENV: production

Expand Down
130 changes: 0 additions & 130 deletions .github/workflows/preview-deploy.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy PR Preview

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

permissions:
contents: write
pull-requests: write

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true

- name: Build Jekyll site
if: github.event.action != 'closed'
run: |
# Remove CNAME file for previews to avoid routing conflicts
rm -f CNAME
bundle exec jekyll build
env:
JEKYLL_ENV: production

- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./_site
preview-branch: gh-pages
umbrella-dir: pr-preview
Empty file added 404.html
Empty file.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

14 changes: 14 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,17 @@ <h1>recent articles</h1>
{% else %}
<h2>no posts yet.</h2>
{% endif %}

<!-- GitHub Pages SPA redirect workaround -->
<script type="text/javascript">
(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>
4 changes: 1 addition & 3 deletions _posts/2025-06-08-remote-development-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,4 @@ The perfect remote development environment is personal and evolves with your nee

The key is having redundancy in everything - internet, power, workspace options. This ensures you can always deliver quality work regardless of where you are in the world.

---

*What's your remote development setup? Share your tips in the comments!*
---
4 changes: 1 addition & 3 deletions _posts/2025-06-09-welcome-to-devnomadic.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,4 @@ I'm excited to share this journey with you. Whether you're a fellow developer cu

Let's build something amazing together, from anywhere in the world! 🚀

---

*Currently writing from: [Your Current Location]*
---
Loading