diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce370b2f..30b5678e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: ci +name: ci on: push: branches: @@ -7,10 +7,21 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + sparse-checkout: | + docs + - uses: actions/setup-python@v5 with: python-version: 3.x + - 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- - run: pip install mkdocs-material - run: pip install pymdown-extensions - run: pip install mkdocs-minify-plugin