File tree Expand file tree Collapse file tree 1 file changed +7
-27
lines changed Expand file tree Collapse file tree 1 file changed +7
-27
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
permissions :
8
8
contents : write # Required to push to the gh-pages branch
9
+ pages : write # Required to deploy to GitHub Pages
10
+ id-token : write # Required to authenticate with GitHub Pages
9
11
10
12
jobs :
11
13
deploy :
12
14
runs-on : ubuntu-latest
13
15
steps :
14
- - name : Checkout repository
15
- uses : actions/checkout@v4
16
+ - uses : actions/checkout@v2
17
+ - uses : actions/setup-python@v2
16
18
with :
17
- fetch-depth : 0 # Fetches all history for git-revision-date-localized plugin
18
-
19
- - name : Set up Python
20
- uses : actions/setup-python@v5
21
- with :
22
- python-version : 3.11 # Align with devcontainer environment
23
-
24
- - name : Cache dependencies
25
- uses : actions/cache@v4
26
- with :
27
- path : ~/.cache/pip
28
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
29
- restore-keys : |
30
- ${{ runner.os }}-pip-
31
-
32
- - name : Install dependencies
33
- run : pip install -r requirements.txt
34
-
35
- - name : Configure Git credentials
36
- run : |
37
- git config user.name github-actions[bot]
38
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39
-
40
- - name : Deploy to GitHub Pages
41
- run : mkdocs gh-deploy --force
19
+ python-version : 3.7
20
+ - run : pip install -r requirements.txt
21
+ - run : mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments