Skip to content

Commit ba7564a

Browse files
committed
use netlify for preview
1 parent 7527af6 commit ba7564a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/myst_ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
uses: actions/upload-pages-artifact@v3
5252
with:
5353
path: './lectures/_build/html'
54-
- name: Deploy to GitHub Pages
55-
id: deployment
56-
uses: actions/deploy-pages@v4
54+
- name: Preview Deploy to Netlify
55+
uses: nwtgck/actions-netlify@v3
56+
with:
57+
publish-dir: './lectures/_build/html'
58+
production-branch: main
59+
github-token: ${{ secrets.GITHUB_TOKEN }}
60+
deploy-message: "Preview Deploy from GitHub Actions"
61+
env:
62+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
63+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

lectures/myst.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ project:
1313
- Instructor for Ph.D. Advanced Macroeconomics, University of Minnesota.
1414
url: https://johnstachurski.net
1515
16-
bibliography:
17-
- ./_static/quant-econ.bib
1816
github: https://github.com/QuantEcon/lecture-python-programming.myst
1917
toc:
2018
- file: intro.md

myst_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ matplotlib
66
pandas
77
quantecon
88
sympy
9+
networkx

0 commit comments

Comments
 (0)