Skip to content

Commit

Permalink
Add docs workflow (#195)
Browse files Browse the repository at this point in the history
* Added docs workflow

* Add develop push trigger
  • Loading branch information
eliotwrobson committed Dec 30, 2023
1 parent f9189d1 commit 9eaa7ad
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docs
# Based on https://squidfunk.github.io/mkdocs-material/publishing-your-site/
on:
push:
branches:
- main
- develop # TODO remove once we have the first version of the docs up.
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install -r requirements.docs.txt
- run: mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"isort.args": [
Expand Down

0 comments on commit 9eaa7ad

Please sign in to comment.