Skip to content

Commit 7e94d63

Browse files
committed
Fix: doc-deploy job, fetch first
1 parent 4bc9ddc commit 7e94d63

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/doc-pub.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'v*'
99

1010
jobs:
11-
deploy:
11+
doc-deploy:
1212
runs-on: ubuntu-latest
1313
permissions: write-all
1414

@@ -31,7 +31,9 @@ jobs:
3131
3232
- name: Deploy dev version using mike
3333
if: github.ref == 'refs/heads/main'
34-
run: mike deploy dev --update-aliases --push
34+
run: |
35+
git fetch origin gh-pages --depth=1
36+
mike deploy dev --update-aliases --push
3537
3638
- name: Deploy release version using mike
3739
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)