Skip to content

Commit

Permalink
update permissions on deploy docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
nreinicke committed Nov 27, 2024
1 parent aa509d6 commit 0db9b01
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0db9b01

Please sign in to comment.