Skip to content

Commit 2e0528d

Browse files
authored
Update ci for build docs (#14)
* Update some async functions definition * Update ci for build docs
1 parent 823e181 commit 2e0528d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ permissions:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11+
if: github.event.repository.fork == false
1112
steps:
1213
- uses: actions/checkout@v4
1314
- name: Configure Git Credentials
@@ -16,13 +17,16 @@ jobs:
1617
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
1718
- uses: actions/setup-python@v5
1819
with:
19-
python-version: 3.10
20+
python-version: 3.x
2021
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2122
- uses: actions/cache@v4
2223
with:
2324
key: mkdocs-material-${{ env.cache_id }}
2425
path: .cache
2526
restore-keys: |
2627
mkdocs-material-
27-
- run: pip install mkdocs-material
28+
- run: apt-get install pngquant
29+
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
2830
- run: mkdocs gh-deploy --force
31+
env:
32+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)