Skip to content

Commit 352f6fd

Browse files
authored
Update deploy-mkdocs.yml
fix: Using workflow from mkdocs material
1 parent a05dde2 commit 352f6fd

File tree

1 file changed

+17
-25
lines changed

1 file changed

+17
-25
lines changed

.github/workflows/deploy-mkdocs.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,28 @@
1-
name: Deploy MkDocs
2-
1+
name: ci
32
on:
43
push:
54
branches:
6-
- master
7-
5+
- master
6+
- main
7+
permissions:
8+
contents: write
89
jobs:
910
deploy:
1011
runs-on: ubuntu-latest
11-
1212
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
1815
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
3225
- name: Navigate to documentation directory and Deploy to GitHub Pages
3326
run: |
3427
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

0 commit comments

Comments
 (0)