# Latest version of docs not published (github actions/TagBot)

**URL:** <https://discourse.julialang.org/t/latest-version-of-docs-not-published-github-actions-tagbot/50634>\
**Category:** General Usage\
**Tags:** documentation, tagbot\
**Created:** [November 23, 2020, 3:21pm UTC](https://discourse.julialang.org/t/latest-version-of-docs-not-published-github-actions-tagbot/50634 "2020-11-23T15:21:17Z")\
**Posts on this page:** 1\
**Showing post:** 19

<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:** [November 23, 2020, 7:15pm UTC](https://discourse.julialang.org/t/latest-version-of-docs-not-published-github-actions-tagbot/50634/19 "2020-11-23T19:15:02Z")

</div>

Great, so this is the easy way: (I am writing this mostly to myself in the future, I thank you again for the help here).

**1. Create a file:**

```julia
/home/user/.julia/dev/Project/.github/workflows/TagBot.yml

```

and add the content provided here: [TagBot.yml example](https://github.com/JuliaRegistries/TagBot/blob/master/README.md)

**2. Use `DocumenterTools` to generate the keys, with**

```julia
import DocumenterTools
DocumenterTools.genkeys()

```

which will output something like:

```julia
julia> DocumenterTools.genkeys()
[ Info: add the public key below to https://github.com/$USER/$REPO/settings/keys with read/write access:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDIIDDRX8DyLG... CCKQPTNei1Ng8b5d+a1ldnVSkgB0= Documenter

[ Info: add a secure environment variable named 'DOCUMENTER_KEY' to https://travis-ci.com/$USER/$REPO/settings (if you deploy using Travis CI) or https://github.com/$USER/$REPO/settings/secrets (if you deploy using GitHub Actions) with value:

LS0tLS1CRUdJTiBPUEVOU1NIIFBSSV... MGtyNng2VWR6WTFxckg1bkUyVGU2ajU3TUdveXpZL1EzTApoNGlqbE5NSWJTOFA2K2JNUkYxVFVCUzdQbC9mZDlTZWJKYTlKdWpMamtnNWRiblJFSkpESmpDTzNzSjZ4d0VCUmV2WmJSCnZtV2lkWkVnQnlPUFVsQUFBQUNrUnZZM1Z0Wlc1MFpYST0KLS0tLS1FTkQgT1BFTlNTSCBQUklWQVRFIEtFWS0tLS0tCg==

```

**3. Add the keys to the github repository:**

_Warning:_ ~~Be careful to not introduce newlines or any other strange character when copying and pasting the keys. In particular, the secret must be all in one line. That was part of the problem.~~ fixed now by Chistopher

The first key, starting with `ssh-rsa ` must be copied as a new "Deploy key` in the project, at (Currently at:

`Settings -> Deploy keys -> Add deploy key`

and the second key has to be copied to:

`Settings -> Secrets -> New repository secret`

with the name `DOCUMENTER_KEY`.

**4. If something went wrong with the deployment of the docs of a previous version:**

I went to the registered commit, which always have the following information, for example:

```julia
git tag -a v0.4.11 -m "<description of version>" fbeec6a00adbd15053d297542e8354c457b2a610
git push origin v0.4.11

```

and created a new tag adding `+doc1` to the tag:

```julia
git tag -a v0.4.11+doc1 -m "v0.4.11" fbeec6a00adbd15053d297542e8354c457b2a610
git push origin v0.4.11+doc1

```

Then I had to go to the github page → tags, and publish that release manually.

---

_[View the full topic](https://discourse.julialang.org/t/latest-version-of-docs-not-published-github-actions-tagbot/50634)._
