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:
|
||||
- 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
|
||||
|
||||
@@ -21,6 +21,7 @@ exclude:
|
||||
|
||||
include:
|
||||
- _pages
|
||||
- CNAME
|
||||
|
||||
twitter:
|
||||
username: bordeaux1981
|
||||
@@ -94,7 +95,6 @@ plugins:
|
||||
- jekyll-include-cache
|
||||
- jekyll-last-modified-at
|
||||
|
||||
|
||||
pagination:
|
||||
# Site-wide kill switch, disabled here it doesn't run at all
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user