Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dtenreiro committed Jun 6, 2024
2 parents d03cf2e + acba5b6 commit 075a932
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 50 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" # Uses the baseurl set in _config.yml or manually set here
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
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@v4
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ source "https://rubygems.org"
# https://talk.jekyllrb.com/t/jekyll-serve-auto-regeneration-not-recognizing-changes-after-gemfile-update/5335/7
gem 'github-pages'
gem 'jekyll-redirect-from', '~> 0.6'
gem "listen", "~> 3.2.1"
gem "listen", "~> 3.1"
56 changes: 7 additions & 49 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,28 @@ author:
name: Daniel Tenreiro

# The `>` after `description:` means to ignore line-breaks until next key.
# If you want to omit the line-break after the end of text, use `>-` instead.
description: >
Lorem ipsum.
# Build settings

# If you clone the Minima repo and build locally, use this setting.
theme: minima

# As of November 2023, GitHub Pages still uses Minima 2.5.1 (https://pages.github.com/versions/).
# If you want to use the latest Minima version on GitHub Pages, use the following setting and
# add a line comment on "theme: minima" above.
#remote_theme: jekyll/minima
baseurl: ""

plugins:
- jekyll-feed
- jekyll-seo-tag

# Theme-specific settings

# If you want to link only specific pages in your header, use this and add the path to the pages
# in order as they should show up.
header_pages:
- about.md
- now.md

# Set to `true` to show excerpts on the homepage.
#show_excerpts: false

# Minima specific settings, which are only available from Minima 3.0 onward.
# Minima specific settings, available from Minima 3.0 onward.
minima:
# Minima skin selection.
# Available skins are:
# classic Default, light color scheme.
# dark Dark variant of the classic skin.
# auto Adaptive skin based on the default classic and dark skins.
# solarized-light Light variant of solarized color scheme.
# solarized-dark Dark variant of solarized color scheme.
# solarized Adaptive skin for solarized color scheme skins.

skin: dark

# Minima date format.
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#date_format: "%b-%d-%Y"

# Generate social links in footer.
#social_links:
# - { platform: devto, user_url: "https://dev.to/jekyll" }
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
# - { platform: github, user_url: "https://github.com/jekyll/minima" }
# - { platform: gitlab, user_url: "https://gitlab.com/jekyll" }
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
# - { platform: linkedin, user_url: "https://www.linkedin.com/in/jekyll" }
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
# - { platform: telegram, user_url: "https://t.me/jekyll" }
- { platform: twitter, user_url: "https://twitter.com/TenreiroDaniel" }
# - { platform: x, user_url: "https://x.com/jekyllrb" }
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
date_format: "%b %d, %Y" # Customizable date format

# Social links in footer.
social_links:
- platform: twitter
user_url: "https://twitter.com/TenreiroDaniel"
4 changes: 4 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: home
title: Home
---

0 comments on commit 075a932

Please sign in to comment.