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:
|
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
|
||||||
@@ -33,23 +33,28 @@ jobs:
|
|||||||
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
|
|
||||||
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
|
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.1' # Not needed with a .ruby-version file
|
node-version: '22'
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
- name: Install pnpm
|
||||||
cache-version: 0 # Increment this number if you need to re-download cached gems
|
uses: pnpm/action-setup@v4
|
||||||
- name: Setup Pages
|
with:
|
||||||
id: pages
|
version: '10'
|
||||||
uses: actions/configure-pages@v5
|
- name: Install dependencies
|
||||||
- name: Build with Jekyll
|
run: pnpm install
|
||||||
# Outputs to the './_site' directory by default
|
- name: Build JavaScript
|
||||||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
run: pnpm build:all
|
||||||
env:
|
- name: 💎 Setup Ruby
|
||||||
JEKYLL_ENV: production
|
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
|
- name: Upload artifact
|
||||||
# Automatically uploads an artifact from the './_site' directory by default
|
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
# Deployment job
|
# Deployment job
|
||||||
|
|||||||
54
_config.yml
54
_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,35 +41,35 @@ 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
|
||||||
|
|
||||||
@@ -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,10 +117,10 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user