Update main.yml #97
This file contains hidden or 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: Pelican site CI | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- content | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: master | |
ref: master | |
- uses: actions/checkout@v3 | |
with: | |
path: content | |
ref: content | |
- run: | | |
cd content | |
pip install --break-system-packages -r requirements.txt | |
pelican -o ../master -s pelicanconf.py | |
cd ../master | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . && git commit -m "Build $(date)" && git push |