# How to update the documentation of a package hosted on Github?

**URL:** <https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324>\
**Category:** General Usage\
**Tags:** package\
**Created:** [October 23, 2023, 5:48pm UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324 "2023-10-23T17:48:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_stla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_stla/32/35613_2.png) [@\_stla](https://discourse.julialang.org/u/_stla)\
**Post date:** [October 23, 2023, 5:48pm UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/1 "2023-10-23T17:48:46Z")

</div>

Hello,

I am the maintainer of [EllipticFunctions.jl](https://github.com/stla/EllipticFunctions.jl) (that I will soon register). I have a Github action for the documentation but it has not updated the documentation for one year. Would you know what should I do?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 23, 2023, 8:50pm UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/2 "2023-10-23T20:50:29Z")

</div>

Good question. I am not an expert on github actions, but I did get it set up correctly (eventually). I have three actions: CI, build documentation, and build pages.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/1/e12d89ba569ddb349362b4f0848820b41ed4d847.png)  
This is my [`documentation.yml`](https://github.com/PetrKryslUCSD/FinEtools.jl/blob/main/.github/workflows/documentation.yml).

---

<div class="post-metadata">

**Author:** ![\_stla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_stla/32/35613_2.png) [@\_stla](https://discourse.julialang.org/u/_stla)\
**Post date:** [October 23, 2023, 9:55pm UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/3 "2023-10-23T21:55:36Z")

</div>

Thanks. As before, the Github action seems to work, but nothing happens in the `gh-pages` branch, and the site is not updated.

---

<div class="post-metadata">

**Author:** ![\_stla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_stla/32/35613_2.png) [@\_stla](https://discourse.julialang.org/u/_stla)\
**Post date:** [October 23, 2023, 10:47pm UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/4 "2023-10-23T22:47:31Z")

</div>

It works now, but the updated doc is at _ **`https://stla.github.io/EllipticFunctions.jl/dev/`** _ (note the `/dev` at the end).

I added

```julia
deploydocs(
    repo = "github.com/stla/EllipticFunctions.jl.git",
)

```

in _ **make.jl** _. That was the point.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 24, 2023, 12:24am UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/5 "2023-10-24T00:24:29Z")

</div>

Could be expired public/private documenter keys?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [October 24, 2023, 12:24am UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/6 "2023-10-24T00:24:58Z")

</div>

I think the idea is that it will update the stable docs when you tag and make a release.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 24, 2023, 12:25am UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/7 "2023-10-24T00:25:21Z")

</div>

My initial observation was that your repo did not have “build pages” action.

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [October 24, 2023, 1:01am UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/8 "2023-10-24T01:01:57Z")

</div>

I use this step-by-step: [Publish Docs · JuliaNotes.jl](https://m3g.github.io/JuliaNotes.jl/stable/publish_docs/)

---

<div class="post-metadata">

**Author:** ![\_stla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_stla/32/35613_2.png) [@\_stla](https://discourse.julialang.org/u/_stla)\
**Post date:** [October 24, 2023, 1:06am UTC](https://discourse.julialang.org/t/how-to-update-the-documentation-of-a-package-hosted-on-github/105324/9 "2023-10-24T01:06:22Z")

</div>

Thanks everyone, that is working now. After releasing `v2.0.0`, I also have the doc of this version by appending `v2.0.0` to the link instead of `dev`. I followed [the Documenter documentation](https://documenter.juliadocs.org/stable/man/hosting/). The problem was the missing `deploydocs` in _ **make.jl** _, mainly.
