File tree Expand file tree Collapse file tree 1 file changed +17
-25
lines changed Expand file tree Collapse file tree 1 file changed +17
-25
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy MkDocs
2
-
1
+ name : ci
3
2
on :
4
3
push :
5
4
branches :
6
- - master
7
-
5
+ - master
6
+ - main
7
+ permissions :
8
+ contents : write
8
9
jobs :
9
10
deploy :
10
11
runs-on : ubuntu-latest
11
-
12
12
steps :
13
- - name : Check out repository
14
- uses : actions/checkout@v2
15
-
16
- - name : Set up Python
17
- uses : actions/setup-python@v2
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-python@v4
18
15
with :
19
- python-version : ' 3.x'
20
-
21
- - name : Install dependencies
22
- run : |
23
- python -m pip install --upgrade pip
24
- pip install mkdocs
25
- pip install mkdocs-material
26
-
27
- - name : Configure Git
28
- run : |
29
- git config user.name "GitHub Actions"
30
- git config user.email "[email protected] "
31
-
16
+ python-version : 3.x
17
+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
18
+ - uses : actions/cache@v3
19
+ with :
20
+ key : mkdocs-material-${{ env.cache_id }}
21
+ path : .cache
22
+ restore-keys : |
23
+ mkdocs-material-
24
+ - run : pip install mkdocs-material
32
25
- name : Navigate to documentation directory and Deploy to GitHub Pages
33
26
run : |
34
27
cd documentation
35
- git remote set-url origin https://x-access-token:${{ secrets.MY_GITHUB_TOKEN }}@github.com/MertenD/node-crawler.git
36
- mkdocs gh-deploy --clean
28
+ mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments