Skip to content

Build and Deploy Jekyll Site #8

Build and Deploy Jekyll Site

Build and Deploy Jekyll Site #8

Workflow file for this run

name: Build and Deploy Jekyll
on:
workflow_dispatch:
push:
branches:
- gh-pages
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v2
with:
ruby-version: 2.7
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build Jekyll site
run: bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source: ./_site/
public: true