feat: github pages workflow
This commit is contained in:
35
.github/workflows/jekyll.yml
vendored
35
.github/workflows/jekyll.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ exclude:
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- _pages
|
- _pages
|
||||||
|
- CNAME
|
||||||
|
|
||||||
twitter:
|
twitter:
|
||||||
username: bordeaux1981
|
username: bordeaux1981
|
||||||
@@ -94,7 +95,6 @@ plugins:
|
|||||||
- 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
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user