Skip to content

Merge pull request #73 from vkulichenko/patch-1 #17

Merge pull request #73 from vkulichenko/patch-1

Merge pull request #73 from vkulichenko/patch-1 #17

Workflow file for this run

name: Build & Deploy Jekyll site
on:
push:
branches:
- main
workflow_dispatch:
permissions: write-all
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# install ruby
# action already handles gems caches
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.0
bundler-cache: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
# build with baseurl pointing to the pages base_path
- name: Build jekyll site
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
# deploy
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
enable_jekyll: true
keep_files: true