From 0db9b01a61f39c39951455693dec4f70dc2f79da Mon Sep 17 00:00:00 2001 From: Nicholas Reinicke Date: Wed, 27 Nov 2024 12:31:05 -0700 Subject: [PATCH] update permissions on deploy docs action --- .github/workflows/deploy-docs.yaml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deploy-docs.yaml diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml new file mode 100644 index 0000000..043bfe2 --- /dev/null +++ b/.github/workflows/deploy-docs.yaml @@ -0,0 +1,41 @@ +name: deploy-docs + +on: + push: + branches: + - main + paths: + - docs/** + - .github/workflows/deploy-docs.yaml + +jobs: + deploy-docs: + runs-on: ubuntu-latest + permissions: + contents: write + defaults: + run: + shell: bash -el {0} + steps: + - uses: actions/checkout@v4 + + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: "3.12" + + - name: Install package + run: | + conda install -c conda-forge osmnx + pip install ".[dev]" + + - name: Build book + run: | + jupyter-book build docs/ + + # Push the book's HTML to github-pages + - name: GitHub Pages action + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/_build/html