Skip to content

Build a Pelican Website #81

Build a Pelican Website

Build a Pelican Website #81

Workflow file for this run

name: Build a Pelican Website
on:
push:
# This prevents the workflow from running automatically on a new branch
# When creating a new site branch, please ensure that the push and checkout branches agree
# and that the action/pelican destination value is updated accordingly
branches: ['main']
paths:
- 'content/**'
- 'pelicanconf.py'
- '.asf.yaml'
workflow_dispatch:
inputs:
ref:
description: "Branch or tag to run"
required: false
default: 'main'
type: string
jobs:
build-pelican:
runs-on: ubuntu-latest
permissions:
contents: write # because we push to asf-site
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.input.ref != '' && github.event.input.ref || github.ref }}
- uses: apache/infrastructure-actions/pelican@ed044141796eb8ad67581cf5f4210656ffa77daa
with:
# This must be appropriate for the branch being built
destination: 'asf-site'
gfm: 'true'