Update 2024-06-17-hybrid-search.md #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Solr website with ASF Pelican action for PRs | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build-pelican: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
# This is the version of the action for setting up Python, not the Python version. | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Pelican | |
shell: bash | |
# Install needs to run in separate shell so stdout is restored | |
run: | | |
( | |
pip3 install pelican==4.9.1 markdown bs4 ezt requests | |
) | |
python3 -V | |
echo "Pelican version:" | |
pelican --version | |
# If the site uses Github Flavored Markdown, use this build branch | |
- name: Generate website from markdown | |
shell: bash | |
run: | | |
python3 -B -m pelican content |