Skip to content

Commit

Permalink
test auto-deployment of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
arogozhnikov committed Sep 17, 2024
1 parent 731d17d commit f02ff42
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: deploy-docs
on:
push:
branches:
# triggers on new commits / merged PRs to main
- main
- docs-test
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
# credentials of GitHub's public bot, so that commits 'belonged' to bot
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.12
# - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
# - uses: actions/cache@v4
# with:
# key: mkdocs-material-${{ env.cache_id }}
# path: .cache
# restore-keys: |
# mkdocs-material-
## original deploy instruction has --force
# - run: mkdocs gh-deploy --force
- run: pip install hatch && hatch run docs:deploy

0 comments on commit f02ff42

Please sign in to comment.