Skip to content

Trigger GitHub Actions workflow #2

Trigger GitHub Actions workflow

Trigger GitHub Actions workflow #2

Workflow file for this run

name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- main
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install Bundler and dependencies
run: |
gem install bundler
bundle config set --local path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Build site with Jekyll
run: bundle exec jekyll build --destination _site
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site