Update title #126
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 and Publish Site | |
on: | |
push: | |
paths: | |
- 'content/**' | |
- pelicanconf.py | |
- requirements.txt | |
- .github/workflows/build-and-publish.yaml | |
- 'themes/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run black on content | |
run: | | |
black content | |
- name: Generate with Pelican | |
run: | | |
pelican -D content | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: output # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |