Skip to content

Fix GitHub Actions permissions for deploying to gh-pages #4

Fix GitHub Actions permissions for deploying to gh-pages

Fix GitHub Actions permissions for deploying to gh-pages #4

Workflow file for this run

name: Jekyll site CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Ensure the token has write permissions
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install dependencies
run: bundle install
- name: Build the site
run: bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site