Skip to content

Commit

Permalink
update docs deployment - only for main pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
chowland committed Sep 20, 2023
1 parent 513db89 commit 0d748fe
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,28 @@ name: Deploy documentation

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- 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 mkdocs-material mkdocs-macros-plugin

Expand Down

0 comments on commit 0d748fe

Please sign in to comment.