Skip to content

How to use the github action with a theme? #3308

Description

@Jacob-Stevens-Haas
  • I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

I'm trying to use the provided github action to deploy my site. Locally, I've run pelican-themes --install path/to/pelican-themes/Flex, having cloned that repo. The action sees my THEME in pelicanconfig.py and raises the error "CRITICAL Exception: Could not find the theme"

My jobs:

jobs:
  theme:
    name: install theme
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      with:
        repository: "alexandrevicenzi/Flex"
        ref: "v2.5.0"
    - name: Set up Python
      uses: actions/setup-python@v4
      with:
        python-version: "3.11"
    - uses: actions/checkout@v4
    - name: "install dependencies"
      run: |
        pip install -r requirements.txt
        pelican-themes --install ./Flex
  deploy:
    needs: theme
    uses: "getpelican/pelican/.github/workflows/github_pages.yml@master"
    permissions:
      contents: "read"
      pages: "write"
      id-token: "write"
    with:
      settings: "publishconf.py"
      requirements: "-r requirements.txt"

My actions look like:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions