Skip to content

Commit e7a2d36

Browse files
committed
add fetch-depth to checkout step in ci
1 parent cc8cdb7 commit e7a2d36

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/github-pages-mkdocs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1819
- name: Set up Python
1920
uses: actions/setup-python@v4
2021
with:
@@ -31,7 +32,7 @@ jobs:
3132
- name: Install dependencies
3233
run: |
3334
poetry --version
34-
poetry install
35+
poetry install --with main,docs
3536
3637
3738
- name: Deploy to GitHub Pages
@@ -70,6 +71,7 @@ jobs:
7071
env:
7172
ACTIONS_DEPLOY_TOKEN: ${{ secrets.ACTIONS_DEPLOY_TOKEN }}
7273
run: |
74+
git fetch
7375
git config --global user.name '${{ github.actor }}'
7476
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
7577
#git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_DEPLOY_TOKEN }}@github.com/${{ github.repository }}.git

0 commit comments

Comments
 (0)