This GitHub Action builds a Cecil site and uploads a GitHub Pages artifact.
- name: Build site
uses: Cecilapp/Cecil-Action@v4
# optional
with:
version: 8.0.0 # default: latest version
install_themes: "yes" # default: "yes"
options: -v --config=config.yml # default: "-v" (verbose)The following workflow:
- runs on pushes to the
mainandmasterbranches - checkout source
- setup PHP
- downloads Cecil
- installs theme(s)
- runs Cecil build
- upload pages artifact
- deploys to GitHub Pages
name: Build and deploy to GitHub Pages
on:
push:
branches: [main, master]
workflow_dispatch:
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v6
- name: Build site
uses: Cecilapp/Cecil-Action@v4
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5Cecil build Action is a free software distributed under the terms of the MIT license.