# Documenter.jl only updating dev section in my package

**URL:** <https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650>\
**Category:** Package Management\
**Tags:** documenter\
**Created:** [October 23, 2024, 2:31pm UTC](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650 "2024-10-23T14:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iddingsite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iddingsite/32/31840_2.png) [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Post date:** [October 23, 2024, 2:31pm UTC](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650/1 "2024-10-23T14:31:00Z")

</div>

Hi everyone,

I have been developping a package for some time now, and I struggle to setup up the documentation correctly with Documenter.jl. Everything seems to be configured correctly, but only the dev part of the documentation is updated each time I make a push and no specific documentation for each version is made. I am a bit confused on what could be the cause for that. The package is here [GitHub - Iddingsite/DiffusionGarnet.jl: Model coupled diffusion of major elements in garnet using natural data.](https://github.com/Iddingsite/DiffusionGarnet.jl) and the documentation page is [Home · DiffusionGarnet.jl](https://iddingsite.github.io/DiffusionGarnet.jl/dev/). As you may see, the only stable version available is v0.0.1, whereas the current version of the package is v0.1.8.

The documentation.yml file seems fine to me:

```julia
name: Documentation

on:
  push:
    branches: 
      - main # update to match your development branch (master, main, dev, trunk, ...)
    tags: '*'
  pull_request:
jobs:
  build:
    name: Documentation
    runs-on: ubuntu-latest
    permissions:
      contents: write
      statuses: write
    steps:
      - uses: actions/checkout@v4
      - uses: julia-actions/setup-julia@latest
        with:
          version: '1'
      #- name: Install dependencies
      # run: |
      # julia --project=docs/ -e '
      # using Pkg
      # Pkg.develop(PackageSpec(path=pwd()))
      # Pkg.instantiate()'
      # - uses: julia-actions/julia-buildpkg@v1
      - uses: julia-actions/julia-docdeploy@v1
      - name: Build and deploy
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
          DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
        run: julia --project=docs/ docs/make.jl

```

In the julia-docdeploy@v1 section on github, I think this may be related:

 ![Capture d’écran 2024-10-23 à 16.22.21](https://global.discourse-cdn.com/julialang/original/3X/d/7/d7fe08b41b3910ced6b31bcf60bc9649da13850f.png)

It seems that there may be a problem with `ENV["DOCUMENTERKEY"]` or `ENV["GITHUBTOKEN"]`?

What could be the easier way to solve this problem and what am I doing wrong?

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [October 23, 2024, 3:16pm UTC](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650/2 "2024-10-23T15:16:17Z")

</div>

> [@Iddingsite](#):
>
> It seems that there may be a problem with `ENV["DOCUMENTERKEY"]` or `ENV["GITHUBTOKEN"]`?

I think you need to follow the instructions here: [Hosting Documentation · Documenter.jl](https://documenter.juliadocs.org/stable/man/hosting/#travis-ssh)

---

<div class="post-metadata">

**Author:** ![Iddingsite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iddingsite/32/31840_2.png) [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Post date:** [October 23, 2024, 3:54pm UTC](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650/3 "2024-10-23T15:54:43Z")

</div>

Thx for your answer! I have done so, but sadly, it still doesn’t update the stable version, only the dev one and the previous screenshot I sent in my previous message is the same. The key seems to have been used though.

 ![Capture d’écran 2024-10-23 à 17.53.44](https://global.discourse-cdn.com/julialang/original/3X/f/f/ffd334a2dcf087d890c07c18c6a8d88724242b48.png)

---

<div class="post-metadata">

**Author:** ![Iddingsite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iddingsite/32/31840_2.png) [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Post date:** [October 23, 2024, 4:15pm UTC](https://discourse.julialang.org/t/documenter-jl-only-updating-dev-section-in-my-package/121650/4 "2024-10-23T16:15:27Z")

</div>

Actually, I think it worked, I have now a 0.1.9 entry in my documentation. Thx!
