feat: github pages workflow
This commit is contained in:
55
.github/workflows/jekyll.yml
vendored
55
.github/workflows/jekyll.yml
vendored
@@ -9,12 +9,12 @@ name: Deploy Jekyll site to Pages
|
|||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: [ "main" ]
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pages: write
|
pages: write
|
||||||
@@ -31,26 +31,31 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Ruby
|
- uses: actions/setup-node@v5
|
||||||
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
|
with:
|
||||||
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
|
node-version: '22'
|
||||||
with:
|
- name: Install pnpm
|
||||||
ruby-version: '3.1' # Not needed with a .ruby-version file
|
uses: pnpm/action-setup@v4
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
with:
|
||||||
cache-version: 0 # Increment this number if you need to re-download cached gems
|
version: '10'
|
||||||
- name: Setup Pages
|
- name: Install dependencies
|
||||||
id: pages
|
run: pnpm install
|
||||||
uses: actions/configure-pages@v5
|
- name: Build JavaScript
|
||||||
- name: Build with Jekyll
|
run: pnpm build:all
|
||||||
# Outputs to the './_site' directory by default
|
- name: 💎 Setup Ruby
|
||||||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
uses: ruby/setup-ruby@v1
|
||||||
env:
|
with:
|
||||||
JEKYLL_ENV: production
|
ruby-version: 3.2.3
|
||||||
- name: Upload artifact
|
|
||||||
# Automatically uploads an artifact from the './_site' directory by default
|
- name: 🏗️ Build Jekyll site
|
||||||
uses: actions/upload-pages-artifact@v3
|
run: |
|
||||||
|
bundle install
|
||||||
|
bundle exec jekyll build --lsi --destination ${{ github.workspace }}/_site
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
# Deployment job
|
# Deployment job
|
||||||
deploy:
|
deploy:
|
||||||
@@ -60,6 +65,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
144
_config.yml
144
_config.yml
@@ -16,11 +16,12 @@ url: https://pivoine.art
|
|||||||
baseurl: ''
|
baseurl: ''
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
- packages
|
- packages
|
||||||
- gfx
|
- gfx
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- _pages
|
- _pages
|
||||||
|
- CNAME
|
||||||
|
|
||||||
twitter:
|
twitter:
|
||||||
username: bordeaux1981
|
username: bordeaux1981
|
||||||
@@ -40,37 +41,37 @@ theme_color: rgb(255,255,255)
|
|||||||
|
|
||||||
menu:
|
menu:
|
||||||
legal:
|
legal:
|
||||||
- title: About
|
- title: About
|
||||||
url: /about
|
url: /about
|
||||||
- title: Imprint
|
- title: Imprint
|
||||||
url: /imprint
|
url: /imprint
|
||||||
|
|
||||||
timezone: Europe/Berlin
|
timezone: Europe/Berlin
|
||||||
|
|
||||||
featured_categories:
|
featured_categories:
|
||||||
- slug: Palina
|
- slug: Palina
|
||||||
title: Palina
|
title: Palina
|
||||||
url: /palina
|
url: /palina
|
||||||
- slug: Odinsland
|
- slug: Odinsland
|
||||||
title: Odinsland
|
title: Odinsland
|
||||||
url: /odinsland
|
url: /odinsland
|
||||||
- slug: Devilish
|
- slug: Devilish
|
||||||
title: Devilish
|
title: Devilish
|
||||||
url: /devilish
|
url: /devilish
|
||||||
- slug: Souls
|
- slug: Souls
|
||||||
title: Souls
|
title: Souls
|
||||||
url: /souls
|
url: /souls
|
||||||
- slug: Sketches
|
- slug: Sketches
|
||||||
title: Sketches
|
title: Sketches
|
||||||
url: /sketches
|
url: /sketches
|
||||||
- slug: Music
|
- slug: Music
|
||||||
title: Music
|
title: Music
|
||||||
url: /music
|
url: /music
|
||||||
|
|
||||||
featured_tags:
|
featured_tags:
|
||||||
- slug: Hyperloop
|
- slug: Hyperloop
|
||||||
title: Hyperloop
|
title: Hyperloop
|
||||||
url: /hyperloop
|
url: /hyperloop
|
||||||
|
|
||||||
lsi: true
|
lsi: true
|
||||||
|
|
||||||
@@ -81,19 +82,18 @@ kramdown:
|
|||||||
permalink: pretty
|
permalink: pretty
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- jekyll-default-layout
|
- jekyll-default-layout
|
||||||
- jekyll-feed
|
- jekyll-feed
|
||||||
- jekyll-optional-front-matter
|
- jekyll-optional-front-matter
|
||||||
- jekyll-paginate-v2
|
- jekyll-paginate-v2
|
||||||
- jekyll-readme-index
|
- jekyll-readme-index
|
||||||
- jekyll-redirect-from
|
- jekyll-redirect-from
|
||||||
- jekyll-relative-links
|
- jekyll-relative-links
|
||||||
- jekyll-seo-tag
|
- jekyll-seo-tag
|
||||||
- jekyll-sitemap
|
- jekyll-sitemap
|
||||||
- jekyll-titles-from-headings
|
- jekyll-titles-from-headings
|
||||||
- jekyll-include-cache
|
- jekyll-include-cache
|
||||||
- jekyll-last-modified-at
|
- jekyll-last-modified-at
|
||||||
|
|
||||||
|
|
||||||
pagination:
|
pagination:
|
||||||
# Site-wide kill switch, disabled here it doesn't run at all
|
# Site-wide kill switch, disabled here it doesn't run at all
|
||||||
@@ -117,113 +117,113 @@ google_fonts: false
|
|||||||
|
|
||||||
pivoine:
|
pivoine:
|
||||||
# Configure the order of complementary content on blog posts
|
# Configure the order of complementary content on blog posts
|
||||||
post_addons: [about, newsletter, related, random, comments]
|
post_addons: [ about, newsletter, related, random, comments ]
|
||||||
|
|
||||||
# Configure the order of complementary content on project pages
|
# Configure the order of complementary content on project pages
|
||||||
project_addons: [about, newsletter, other, comments]
|
project_addons: [ about, newsletter, other, comments ]
|
||||||
|
|
||||||
# Set to `true` if you don't want to show an icon indicating external links
|
# Set to `true` if you don't want to show an icon indicating external links
|
||||||
no_mark_external: true
|
no_mark_external: true
|
||||||
|
|
||||||
# Set to `true` if third party plugins fail to work with dynamically loaded pages
|
# Set to `true` if third party plugins fail to work with dynamically loaded pages
|
||||||
no_push_state: false
|
no_push_state: false
|
||||||
|
|
||||||
# Set to `true` if you want to disable the drawer
|
# Set to `true` if you want to disable the drawer
|
||||||
no_drawer: false
|
no_drawer: false
|
||||||
|
|
||||||
# Set to `true` if you don't to use the auto-hiding (JavaScript based) navbar.
|
# Set to `true` if you don't to use the auto-hiding (JavaScript based) navbar.
|
||||||
# Note that this will not hide the navbar completely, only replace it with a static one.
|
# Note that this will not hide the navbar completely, only replace it with a static one.
|
||||||
# Use custom css to hide completely, e.g. `#_navbar { display: none }`.
|
# Use custom css to hide completely, e.g. `#_navbar { display: none }`.
|
||||||
no_navbar: false
|
no_navbar: false
|
||||||
|
|
||||||
# Set to true to disable the built-in search functionality.
|
# Set to true to disable the built-in search functionality.
|
||||||
# Note that search is disabled during local use to save on build time.
|
# Note that search is disabled during local use to save on build time.
|
||||||
# Run Jekyll with the `JEKYLL_ENV` environment variable set to `production` to enable.
|
# Run Jekyll with the `JEKYLL_ENV` environment variable set to `production` to enable.
|
||||||
no_search: false
|
no_search: false
|
||||||
|
|
||||||
# Set to `true` if you do not want parts of the css inlined in <head/>
|
# Set to `true` if you do not want parts of the css inlined in <head/>
|
||||||
# This will increase site build speed dramatically!
|
# This will increase site build speed dramatically!
|
||||||
no_inline_css: false
|
no_inline_css: false
|
||||||
|
|
||||||
# Set to `true` if you don't intend on changing the accent color on a per-page basis.
|
# Set to `true` if you don't intend on changing the accent color on a per-page basis.
|
||||||
# This will increase site build speed!
|
# This will increase site build speed!
|
||||||
no_page_style: false
|
no_page_style: false
|
||||||
|
|
||||||
# Code blocks and tables "break" the layout by spanning the full available width.
|
# Code blocks and tables "break" the layout by spanning the full available width.
|
||||||
# Set this to true if you want them to be the same width as other content.
|
# Set this to true if you want them to be the same width as other content.
|
||||||
no_break_layout: true
|
no_break_layout: true
|
||||||
|
|
||||||
# Set to `true` to disable the dynamic Table of Contents on large screens.
|
# Set to `true` to disable the dynamic Table of Contents on large screens.
|
||||||
no_toc: false
|
no_toc: false
|
||||||
|
|
||||||
# When set to `true`, will not extend the content in the "third column" on large screens.
|
# When set to `true`, will not extend the content in the "third column" on large screens.
|
||||||
# Instead, all content will remains within the center column.
|
# Instead, all content will remains within the center column.
|
||||||
# Note that this will not affect the Table of Contents, use `no_toc` instead.
|
# Note that this will not affect the Table of Contents, use `no_toc` instead.
|
||||||
no_third_column: false
|
no_third_column: false
|
||||||
|
|
||||||
# Set to `true` if you don't like oversized headlines on large screens.
|
# Set to `true` if you don't like oversized headlines on large screens.
|
||||||
no_large_headings: false
|
no_large_headings: false
|
||||||
|
|
||||||
# Set to `true` if you do not want to expose your resume and projects
|
# Set to `true` if you do not want to expose your resume and projects
|
||||||
# in machine-readable formats.
|
# in machine-readable formats.
|
||||||
no_structured_data: false
|
no_structured_data: false
|
||||||
|
|
||||||
# You can set this to `true` if you don't want to set the `theme-color` meta tag,
|
# You can set this to `true` if you don't want to set the `theme-color` meta tag,
|
||||||
# This only affects the meta tag, not the color specified in the app manifest.
|
# This only affects the meta tag, not the color specified in the app manifest.
|
||||||
no_theme_color: false
|
no_theme_color: false
|
||||||
|
|
||||||
# Disable the breadcrumbs above the title
|
# Disable the breadcrumbs above the title
|
||||||
no_breadcrumbs: false
|
no_breadcrumbs: false
|
||||||
|
|
||||||
# Set to `true` when building with the `--lsi` option.
|
# Set to `true` when building with the `--lsi` option.
|
||||||
# The net effect is to use the Jekyll-provided `site.related_posts` variable.
|
# The net effect is to use the Jekyll-provided `site.related_posts` variable.
|
||||||
use_lsi: true
|
use_lsi: true
|
||||||
|
|
||||||
# When using Google Analytics, set to `true` to display a cookie notice banner.
|
# When using Google Analytics, set to `true` to display a cookie notice banner.
|
||||||
# When enabled, no user-related data will be stored until the user gives consent.
|
# When enabled, no user-related data will be stored until the user gives consent.
|
||||||
cookies_banner: false
|
cookies_banner: false
|
||||||
|
|
||||||
# Set to `true` if you would like to add a "Powered by pivoine" link in the footer.
|
# Set to `true` if you would like to add a "Powered by pivoine" link in the footer.
|
||||||
# Note that this setting has no effect when using the free version.
|
# Note that this setting has no effect when using the free version.
|
||||||
advertise: false
|
advertise: false
|
||||||
|
|
||||||
# Buyers of the PRO version can opt to hide all dates from the theme.
|
# Buyers of the PRO version can opt to hide all dates from the theme.
|
||||||
# Frequent consumers of online content will know that nothing devalues a post like
|
# Frequent consumers of online content will know that nothing devalues a post like
|
||||||
# seeing an old date.
|
# seeing an old date.
|
||||||
hide_dates: false
|
hide_dates: false
|
||||||
|
|
||||||
# Similarly, showing last modified date can devalue a post if it is too far in the past.
|
# Similarly, showing last modified date can devalue a post if it is too far in the past.
|
||||||
hide_last_modified: true
|
hide_last_modified: true
|
||||||
|
|
||||||
# Note that dark mode only works in the PRO version of pivoine.
|
# Note that dark mode only works in the PRO version of pivoine.
|
||||||
dark_mode:
|
dark_mode:
|
||||||
# Set to `true` to always use the dark theme.
|
# Set to `true` to always use the dark theme.
|
||||||
always: false
|
always: false
|
||||||
|
|
||||||
# Set to `true` to use the dark theme based on visitors' preference (OS setting).
|
# Set to `true` to use the dark theme based on visitors' preference (OS setting).
|
||||||
dynamic: true
|
dynamic: true
|
||||||
|
|
||||||
# Set to `true` to allow visitors to switch between light and dark mode.
|
# Set to `true` to allow visitors to switch between light and dark mode.
|
||||||
icon: true
|
icon: true
|
||||||
|
|
||||||
search:
|
search:
|
||||||
icon: true
|
icon: true
|
||||||
|
|
||||||
sound: true
|
sound: true
|
||||||
|
|
||||||
umami:
|
umami:
|
||||||
script: https://umami.pivoine.art/script.js
|
script: https://umami.pivoine.art/script.js
|
||||||
id: 26158eb8-e0ae-4985-aa91-2f4a652f8ccb
|
id: 26158eb8-e0ae-4985-aa91-2f4a652f8ccb
|
||||||
|
|
||||||
# ⚡️ DANGER ZONE ⚡️
|
# ⚡️ DANGER ZONE ⚡️
|
||||||
# ----------------
|
# ----------------
|
||||||
# This is an _experimental_ feature.
|
# This is an _experimental_ feature.
|
||||||
# Only use if you know what Service Workers are and how they can impact your site!
|
# Only use if you know what Service Workers are and how they can impact your site!
|
||||||
offline:
|
offline:
|
||||||
enabled: false
|
enabled: false
|
||||||
cache_version: 13
|
cache_version: 13
|
||||||
precache_assets:
|
precache_assets:
|
||||||
- /assets/img/swipe.svg
|
- /assets/img/swipe.svg
|
||||||
|
|
||||||
optional_front_matter:
|
optional_front_matter:
|
||||||
remove_originals: true
|
remove_originals: true
|
||||||
|
|||||||
Reference in New Issue
Block a user