Update jekyll.yml #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
# Checkout the repository | |
- name: Checkout repository 🛎️ | |
uses: actions/checkout@v3 | |
# Set up Node.js | |
- name: Set up Node.js 🐍 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
# Install NPM dependencies | |
- name: Install NPM dependencies ⚙️ | |
run: npm ci | |
# Set up Ruby | |
- name: Set up Ruby 💎 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3.5' | |
bundler-cache: true | |
# Install Bundler and Ruby dependencies | |
- name: Install ruby dependencies 🔧 | |
run: | | |
gem install bundler && bundle install | |
# Install Jekyll | |
- name: Install Jekyll 🧹 | |
run: gem install jekyll | |
# Build project with Gulp | |
- name: Build project with Gulp | |
run: BUILD_DIR=_site npm run build | |
# Deploy to GitHub Pages | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: _site |