Skip to content

Build HTML and Deploy to GH-PAGES #938

Build HTML and Deploy to GH-PAGES

Build HTML and Deploy to GH-PAGES #938

name: Build HTML and Deploy to GH-PAGES
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
jobs:
build-html-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: false
miniconda-version: 'latest'
python-version: 3.11
environment-file: environment.yml
activate-environment: akfds-dev
- name: Build QuantEcon Mini Example
shell: bash -l {0}
run: jb build akfds/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: akfds/_build/html
CLEAN: true