Skip to content

Complete rebuild with Jekyll Serif theme for Volovyk ENK #36

Complete rebuild with Jekyll Serif theme for Volovyk ENK

Complete rebuild with Jekyll Serif theme for Volovyk ENK #36

Workflow file for this run

# .github/workflows/pages.yml
name: Build & Deploy Jekyll site to Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby & Install Gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true
- name: Configure Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
run: |
bundle exec jekyll build \
--destination _site \
--baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAGES_REPO_NWO: ${{ github.repository }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: https://volovyk.dev
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4