Skip to content

Jekyll CI

Jekyll CI #739

Workflow file for this run

name: Jekyll CI
'on':
push:
paths-ignore:
- '*.md'
- 'tests/feedcheck*.rb'
- .github/workflows/feeds.yml
- .github/workflows/feed-request.yml
branches:
- master
pull_request:
paths-ignore:
- '*.md'
- 'tests/feedcheck*.rb'
- .github/workflows/feeds.yml
- .github/workflows/feed-request.yml
branches:
- master
schedule:
- cron: 30 12 * * *
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.2
bundler-cache: true
- name: Install Dependencies
run: bundler install
- name: Configure Feed Cache
uses: actions/cache@v4
with:
path: planet.db
key: cache-feed-sources-${{ hashFiles('Gemfile.lock') }}
- name: Get and Proccess Feed Content
run: bundler exec rake build
- name: Build Jekyll Site
run: bundler exec jekyll build
- uses: actions/upload-pages-artifact@v3
deploy:
if: github.event_name != 'pull_request'
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