# Error deploying documentation after moving repo to organization

**URL:** <https://discourse.julialang.org/t/error-deploying-documentation-after-moving-repo-to-organization/95877>\
**Category:** Package Management\
**Tags:** package\
**Created:** [March 10, 2023, 5:13pm UTC](https://discourse.julialang.org/t/error-deploying-documentation-after-moving-repo-to-organization/95877 "2023-03-10T17:13:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pat-alt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pat-alt/32/34264_2.png) [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Post date:** [March 10, 2023, 5:13pm UTC](https://discourse.julialang.org/t/error-deploying-documentation-after-moving-repo-to-organization/95877/1 "2023-03-10T17:13:55Z")

</div>

Hi there,

I’ve recently moved some of my repos into a new [GitHub organisation](https://github.com/JuliaTrustworthyAI). After merging a [pull request](https://github.com/JuliaTrustworthyAI/CounterfactualExplanations.jl/pull/122) today, I realised that the documentation is no longer deployed:

```julia
┌ Info: Deployment criteria for deploying devbranch build from GitHub Actions:
│ - ✘ ENV["GITHUB_REPOSITORY"]="JuliaTrustworthyAI/CounterfactualExplanations.jl" occurs in repo="github.com/juliatrustworthyai/CounterfactualExplanations.jl.git"
│ - ✔ ENV["GITHUB_EVENT_NAME"]="push" is "push", "workflow_dispatch" or "schedule"
│ - ✔ ENV["GITHUB_REF"] matches devbranch="main"
│ - ✔ ENV["GITHUB_ACTOR"] exists and is non-empty
│ - ✔ ENV["DOCUMENTER_KEY"] exists and is non-empty
└ Deploying: ✘

```

This was never an issue when the repo was still hosted on my own account. I’m not sure how to make sure that this environment variable is available. Do I just hard-code it somewhere into the [CI.yml](https://github.com/JuliaTrustworthyAI/CounterfactualExplanations.jl/blob/main/.github/workflows/CI.yml)?

Many thanks in advance!

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [March 10, 2023, 5:42pm UTC](https://discourse.julialang.org/t/error-deploying-documentation-after-moving-repo-to-organization/95877/2 "2023-03-10T17:42:57Z")

</div>

The only difference from

> <https://github.com/JuliaTrustworthyAI/CounterfactualExplanations.jl/blob/main/docs/make.jl#L62>

to

> <https://github.com/JuliaManifolds/Manopt.jl/blob/master/docs/make.jl#L91>

is the `.git` that we do not have, but you could also add to push previews if you like 🙂

_edit:_ Oh maybe also CapiTaLiZatIoN? At least for your org the two strings mentioned are once `JuliaTrustworthyAI` once the same in lower letters.

---

<div class="post-metadata">

**Author:** ![pat-alt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pat-alt/32/34264_2.png) [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Post date:** [March 10, 2023, 5:50pm UTC](https://discourse.julialang.org/t/error-deploying-documentation-after-moving-repo-to-organization/95877/3 "2023-03-10T17:50:00Z")

</div>

Thanks @kellertuer, good spot! I think the `.git` should be fine, base on [docs](https://documenter.juliadocs.org/stable/lib/public/#Documenter.deploydocs), but it seems that the `repo` argument is case-sensitive. Just tried it for a different repo, for which the same error [previously](https://github.com/JuliaTrustworthyAI/ConformalPrediction.jl/actions/runs/4364450911/jobs/7631783835#step:5:760) occurred

```julia
- ✘ ENV["GITHUB_REPOSITORY"]="JuliaTrustworthyAI/ConformalPrediction.jl" occurs in repo="github.com/juliatrustworthyai/ConformalPrediction.jl"
- ✔ ENV["GITHUB_EVENT_NAME"]="push" is "push", "workflow_dispatch" or "schedule"
- ✔ ENV["GITHUB_REF"] matches devbranch="main"
- ✔ ENV["GITHUB_ACTOR"] exists and is non-empty
- ✔ ENV["GITHUB_TOKEN"] exists and is non-empty

```

and [now](https://github.com/JuliaTrustworthyAI/ConformalPrediction.jl/actions/runs/4386974318/jobs/7681696966#step:5:759) things are working fine:

```julia
Deployment criteria for deploying devbranch build from GitHub Actions:
- ✔ ENV["GITHUB_REPOSITORY"]="JuliaTrustworthyAI/ConformalPrediction.jl" occurs in repo="github.com/JuliaTrustworthyAI/ConformalPrediction.jl"
- ✔ ENV["GITHUB_EVENT_NAME"]="push" is "push", "workflow_dispatch" or "schedule"
- ✔ ENV["GITHUB_REF"] matches devbranch="main"
- ✔ ENV["GITHUB_ACTOR"] exists and is non-empty
- ✔ ENV["GITHUB_TOKEN"] exists and is non-empty

```

The more you know 😅

Thanks and good weekend!
