From d2c6343938ff13920a8c49b52b80101bcb431ecf Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Sun, 18 Aug 2024 14:09:54 -0400 Subject: [PATCH] Add netlify (#5) * Add netlify * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 14 ++++++++++++++ book/geospatial/01_get_started.ipynb | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d81b245..462cbec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,3 +31,17 @@ jobs: - name: Build the book run: | jupyter-book build . + + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v3.0 + with: + publish-dir: "./_build/html" + production-branch: main + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deploy from GitHub Actions" + enable-pull-request-comment: true + enable-commit-comment: false + overwrites-pull-request-comment: true + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/book/geospatial/01_get_started.ipynb b/book/geospatial/01_get_started.ipynb index 8218207..16b89f0 100644 --- a/book/geospatial/01_get_started.ipynb +++ b/book/geospatial/01_get_started.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "1", "metadata": {}, "outputs": [], @@ -21,7 +21,7 @@ { "cell_type": "code", "execution_count": null, - "id": "21097157", + "id": "2", "metadata": {}, "outputs": [], "source": [