Skip to content

Update pages.yml

Update pages.yml #14

Workflow file for this run

# .github/workflows/pages.yml
name: Build & Deploy Jekyll site to Pages
on:
push:
branches: ["master"] # or whatever your default branch is
workflow_dispatch: # optional manual trigger
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: https://volovyk.dev
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby & Install Gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.8" # pick any supported version
bundler-cache: true
- name: Configure Pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
run: bundle exec jekyll build --destination _site
env:
JEKYLL_ENV: production
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAGES_REPO_NWO: ${{ github.repository }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: _site
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v3