Note This Action simplifies managing a project website. More information is available at infra.apache.org/asf-pelican.html.
... jobs: build-pelican: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: - uses: apache/infrastructure-actions/pelican@main with: destination: master gfm: 'true'
Example workflow for only building the site, not publishing. Useful for PR tests:
... jobs: build-pelican: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: - uses: apache/infrastructure-actions/pelican@main with: publish: 'false'
The generate_settings.py script is designed to facilitate migrating away from the infra built pelican site generator via .asf.yaml to GitHub Actions.
The script itself takes one argument: the path to the pelicanconf.yaml file. Additionally, the script will look for an .asf.yaml file in the same directory. If an .asf.yaml file is found, the script will generate a GitHub Action workflow file.