Skip to content

Commit dc7f8c5

Browse files
committed
Simplify docs action
1 parent a6215be commit dc7f8c5

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,18 @@ jobs:
1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup Python
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: '3.12'
20-
21-
- name: Upgrade pip
22-
run: python3 -m pip install --upgrade pip
23-
24-
- name: Get pip cache dir
25-
id: pip-cache
26-
run: echo "dir=$(pip cache dir)" >> $GITHUB_ENV
27-
28-
- name: Cache dependencies
29-
uses: actions/cache@v4
30-
with:
31-
path: ${{ env.dir }}
32-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
33-
restore-keys: |
34-
${{ runner.os }}-pip-
20+
cache: 'pip'
21+
cache-dependency-path: '**/requirements.txt'
3522

3623
- name: Install dependencies
3724
run: |
25+
python -m pip install --upgrade pip
3826
pip install .[docs]
3927
4028
- run: mkdocs build

0 commit comments

Comments
 (0)