Skip to content

⬆️ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.12.2 #660

⬆️ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.12.2

⬆️ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.12.2 #660

Workflow file for this run

name: Build Example Project [using jupyter-book]
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch lecture-python-programming.myst
shell: bash -l {0}
run: |
git clone --branch quantecon-book-theme https://github.com/QuantEcon/lecture-python-programming.myst
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: "3.11"
environment-file: lecture-python-programming.myst/environment.yml
activate-environment: lecture-python-programming
- name: Install quantecon-book-theme
shell: bash -l {0}
run: |
pip uninstall -y quantecon-book-theme
python -m pip install .
- name: Display Conda Environment Versions
shell: bash -l {0}
run: conda list
- name: Display Pip Versions
shell: bash -l {0}
run: pip list
- name: Build HTML
shell: bash -l {0}
run: |
cd lecture-python-programming.myst
jb build lectures --path-output ./
- name: Preview Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: 'lecture-python-programming.myst/_build/html/'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Preview Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}