Skip to content

deploy-website

deploy-website #210

Workflow file for this run

name: deploy-website
# Only run this when the master branch changes
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 13 * * 1'
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install dependencies
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install -r requirements.txt
python scripts/orcid-publications.py
# Build the book
- name: Build the site
run: |
make dirhtml
# If we've pushed to main, push the book's HTML to github-pages
- if: ${{ github.ref == 'refs/heads/main' }}
name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.9.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/dirhtml
cname: www.edenovellis.com