Skip to content

Deploy GitHub Pages #75

Deploy GitHub Pages

Deploy GitHub Pages #75

name: 'daily: Deploy GitHub Pages'
run-name: 'Deploy GitHub Pages'
on:
schedule:
# UTC
- cron: '17 8 * * 1-5'
- cron: '7 22 * * 5,6'
workflow_dispatch:
jobs:
build:
runs-on: [ubuntu-slim]
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v6
- name: Setup Ruby
# https://github.com/ruby/setup-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Build
run: bundle exec jekyll build
env:
JEKYLL_ENV: 'production'
- name: Upload files as artifact
# https://github.com/actions/upload-pages-artifact
uses: actions/upload-pages-artifact@v4
with:
path: _site
deploy:
needs: build
runs-on: [ubuntu-slim]
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
# https://github.com/actions/deploy-pages
uses: actions/deploy-pages@v4