Skip to content

Commit

Permalink
Update deploy_docs.yml to use metadata to use proper napari version s…
Browse files Browse the repository at this point in the history
…ubstitution (#99)

# Description

See napari/napari#5509 (comment)
The docs live on napari.org don't match PR action downloaded docs when
doing napari version substitution
(#51)

This PR updates the deploy action with `fetch-depth: 0` that was added
to the PR `build_docs` action. This should make the version metadata be
correct (see pypa/setuptools-scm#480)

## Type of change
<!-- Please delete options that are not relevant. -->
- [x] Fixes or improves existing content
- [ ] Adds new content page(s)
- [ ] Fixes or improves workflow, documentation build or deployment

# References
Adresses issue noted here
napari/napari#5509 (comment)

## Final checklist:
- [x] My PR is the minimum possible work for the desired functionality
  • Loading branch information
psobolewskiPhD authored Feb 13, 2023
1 parent a5d7be0 commit 506e476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
path: napari-repo
ref: main
repository: napari/napari
# ensure version metadata is proper
fetch-depth: 0

- name: Copy examples to docs folder
run: |
Expand Down

0 comments on commit 506e476

Please sign in to comment.