Skip to content

Deploy page

Deploy page #889

Workflow file for this run

name: Deploy page
on:
workflow_dispatch:
schedule:
- cron: 37 9 * * *
push:
branches:
- main
paths-ignore:
- .github/**
- README.md
- LICENSE
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build page
runs-on: ubuntu-22.04
permissions:
contents: read
env:
RUBY_YJIT_ENABLE: 1
steps:
- name: Check out repo
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Setup Ruby
# yamllint disable-line rule:line-length
uses: ruby/setup-ruby@1d0e911f615a112e322369596f10ee0b95b010ae # v1.183.0
with:
rubygems: 3.5.14
bundler-cache: true
- name: Build with Jekyll
env:
JEKYLL_ENV: production
run: bundle exec jekyll build --verbose --baseurl ''
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
deploy:
name: Deploy page
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.5