feat: github pages workflow
This commit is contained in:
39
.github/workflows/jekyll.yml
vendored
39
.github/workflows/jekyll.yml
vendored
@@ -9,12 +9,12 @@ name: Deploy Jekyll site to Pages
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["main"]
|
||||
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
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
@@ -33,23 +33,28 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Ruby
|
||||
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
|
||||
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
|
||||
- uses: actions/setup-node@v5
|
||||
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
|
||||
# Outputs to the './_site' directory by default
|
||||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
||||
env:
|
||||
JEKYLL_ENV: production
|
||||
node-version: '22'
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: '10'
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
- name: Build JavaScript
|
||||
run: pnpm build:all
|
||||
- name: 💎 Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 3.2.3
|
||||
|
||||
- name: 🏗️ Build Jekyll site
|
||||
run: |
|
||||
bundle install
|
||||
bundle exec jekyll build --lsi --destination ${{ github.workspace }}/_site
|
||||
|
||||
- name: Upload artifact
|
||||
# Automatically uploads an artifact from the './_site' directory by default
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
|
||||
# Deployment job
|
||||
|
||||
54
_config.yml
54
_config.yml
@@ -16,11 +16,12 @@ url: https://pivoine.art
|
||||
baseurl: ''
|
||||
|
||||
exclude:
|
||||
- packages
|
||||
- gfx
|
||||
- packages
|
||||
- gfx
|
||||
|
||||
include:
|
||||
- _pages
|
||||
- _pages
|
||||
- CNAME
|
||||
|
||||
twitter:
|
||||
username: bordeaux1981
|
||||
@@ -40,35 +41,35 @@ theme_color: rgb(255,255,255)
|
||||
|
||||
menu:
|
||||
legal:
|
||||
- title: About
|
||||
- title: About
|
||||
url: /about
|
||||
- title: Imprint
|
||||
- title: Imprint
|
||||
url: /imprint
|
||||
|
||||
timezone: Europe/Berlin
|
||||
|
||||
featured_categories:
|
||||
- slug: Palina
|
||||
- slug: Palina
|
||||
title: Palina
|
||||
url: /palina
|
||||
- slug: Odinsland
|
||||
- slug: Odinsland
|
||||
title: Odinsland
|
||||
url: /odinsland
|
||||
- slug: Devilish
|
||||
- slug: Devilish
|
||||
title: Devilish
|
||||
url: /devilish
|
||||
- slug: Souls
|
||||
- slug: Souls
|
||||
title: Souls
|
||||
url: /souls
|
||||
- slug: Sketches
|
||||
- slug: Sketches
|
||||
title: Sketches
|
||||
url: /sketches
|
||||
- slug: Music
|
||||
- slug: Music
|
||||
title: Music
|
||||
url: /music
|
||||
|
||||
featured_tags:
|
||||
- slug: Hyperloop
|
||||
- slug: Hyperloop
|
||||
title: Hyperloop
|
||||
url: /hyperloop
|
||||
|
||||
@@ -81,19 +82,18 @@ kramdown:
|
||||
permalink: pretty
|
||||
|
||||
plugins:
|
||||
- jekyll-default-layout
|
||||
- jekyll-feed
|
||||
- jekyll-optional-front-matter
|
||||
- jekyll-paginate-v2
|
||||
- jekyll-readme-index
|
||||
- jekyll-redirect-from
|
||||
- jekyll-relative-links
|
||||
- jekyll-seo-tag
|
||||
- jekyll-sitemap
|
||||
- jekyll-titles-from-headings
|
||||
- jekyll-include-cache
|
||||
- jekyll-last-modified-at
|
||||
|
||||
- jekyll-default-layout
|
||||
- jekyll-feed
|
||||
- jekyll-optional-front-matter
|
||||
- jekyll-paginate-v2
|
||||
- jekyll-readme-index
|
||||
- jekyll-redirect-from
|
||||
- jekyll-relative-links
|
||||
- jekyll-seo-tag
|
||||
- jekyll-sitemap
|
||||
- jekyll-titles-from-headings
|
||||
- jekyll-include-cache
|
||||
- jekyll-last-modified-at
|
||||
|
||||
pagination:
|
||||
# Site-wide kill switch, disabled here it doesn't run at all
|
||||
@@ -117,10 +117,10 @@ google_fonts: false
|
||||
|
||||
pivoine:
|
||||
# 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
|
||||
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
|
||||
no_mark_external: true
|
||||
|
||||
Reference in New Issue
Block a user