Merge pull request #20 from ibpsa/dependabot/pip/jinja2-3.1.3 #58
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: Publish to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
name: Set up Python | |
- run: | | |
python --version | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
name: Install requirements | |
- run: python run.py data/* ./web | |
name: Build html pages | |
- run: cp -r content/images web | |
name: Copy content/images/* | |
- uses: peaceiris/actions-gh-pages@v3 | |
name: Deploy to GitHub Pages | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: ./web |