Skip to content

Migrate fully to GitHub Actions for Pages deployment #112

Migrate fully to GitHub Actions for Pages deployment

Migrate fully to GitHub Actions for Pages deployment #112

Workflow file for this run

name: Deploy site
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
submodules: recursive
- name: Configure GitHub Pages
uses: actions/configure-pages@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run Jekyll
# Build the site using Jekyll
run: JEKYLL_ENV=production bundle exec jekyll build
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
# Deployment job
deploy:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4