Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
jrf committed Jan 26, 2025
1 parent ea66e0a commit d4ef906
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy Jekyll site to Pages

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build site
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.PHONY: install build serve clean

# Install dependencies
install:
gem install bundler
bundle install

# Build the site
build:
bundle exec jekyll build

# Serve locally with live reload
serve:
bundle exec jekyll serve

# Clean built files
clean:
bundle exec jekyll clean
rm -rf _site .jekyll-cache

# Start fresh - clean everything and reinstall
fresh: clean
rm -rf vendor
rm -f Gemfile.lock
make install

# Initialize a new Jekyll site
init:
jekyll new .

# Update gems
update:
bundle update
Binary file added assets/img/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: home
breadcrumb:
-
label: Posts
---

0 comments on commit d4ef906

Please sign in to comment.