Giter Club home page Giter Club logo

Comments (17)

goerz avatar goerz commented on June 11, 2024 1

Remove the ".git" in repo?

from documenter.jl.

goerz avatar goerz commented on June 11, 2024 1

I'd try deleting all keys and secrets from both repos and start from scratch with DocumenterTools.genkeys

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024 1

It finally works. Thanks for your help!

from documenter.jl.

goerz avatar goerz commented on June 11, 2024 1

My pleasure! It's the least I can do as a small Thank You for JuliaMono!

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

Thank! Yes, the path looks better now, but although this link looks valid

https://github.com/JuliaGraphics/Luxor.jl/actions/runs/7544837907/job/20539088958#step:7:508

there's still an access error. Perhaps the secret keys aren't correctly set.

from documenter.jl.

goerz avatar goerz commented on June 11, 2024

Yeah, that looks like the secrets aren’t set up right in the two repositories

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

I’ll try and do them again tomorrow. It’s by far the worst aspect of working with Julia… 😂

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

I did the process again:

Screenshot 2024-01-17 at 10 10 48

Error is:

remote: Permission to JuliaGraphics/LuxorManual.git denied to github-actions[bot].
[507](https://github.com/JuliaGraphics/Luxor.jl/actions/runs/7544837907/job/20564991449#step:7:508)
fatal: unable to access 'https://github.com/JuliaGraphics/LuxorManual.git/': The requested URL returned error: 403
[508](https://github.com/JuliaGraphics/Luxor.jl/actions/runs/7544837907/job/20564991449#step:7:509)
┌ Error: Failed to push:
[509](https://github.com/JuliaGraphics/Luxor.jl/actions/runs/7544837907/job/20564991449#step:7:510)
│   exception =
[510](https://github.com/JuliaGraphics/Luxor.jl/actions/runs/7544837907/job/20564991449#step:7:511)
│    failed process: Process(setenv(`/home/runner/.julia/artifacts/5d776960702ec06ebaac2a94fd96a1c44e8cb04a/bin/git push -fq upstream HEAD:gh-pages`,

make.jl code is:

repo = "JuliaGraphics/LuxorManual"
withenv("GITHUB_REPOSITORY" => repo) do
    deploydocs(
      repo = repo,
      target = "build",
      push_preview = true,
      forcepush = true,
    )
end

So I think the documented procedure isn't working ... ?

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

@mortenpi Does my screenshot above look correct? It’s my best guess based on the current documentation…

from documenter.jl.

mortenpi avatar mortenpi commented on June 11, 2024

Don't think you have DOCUMENTER_KEY set up right, since it's trying to use GITHUB_TOKEN: https://github.com/JuliaGraphics/Luxor.jl/actions/runs/7544837907/job/20539088958#step:7:133 (also #2165).

Any reason you're trying to configure an environment, rather than just setting up a global secret? I assume the workflow just doesn't have access to the environment.. I think you have to explicitly tell a workflow to use an environment.

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

Any reason you're trying to configure an environment

I have no idea 😀I think the output of generate_keys said to create an environment variable so I added it. Did I add it to the wrong place?

from documenter.jl.

goerz avatar goerz commented on June 11, 2024

Should be in "Secrets and variables"

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

Should be in "Secrets and variables"

Thanks... I'm obviously the only one to be confused by this but I don't get it at all :(

The Secrets tab has 3 secrets panels - the Documenter docs say "Add the DOCUMENTER_KEY secret to the "source" repository". The genkeys() text says "add a secure environment variable" and the Variables tab has 3 variables panels...

rather than just setting up a global secret?

I can't see any 'global secrets? Just 'Environment Secrets', 'Repository Secrets' and 'Organisation Secrets'.

I'll try copying "the secure environment variable named 'DOCUMENTER_KEY'" to the "Actions secrets and variables/Environment secrets" panel and see if that works.

Thanks for the help though! :)

from documenter.jl.

goerz avatar goerz commented on June 11, 2024

I'm confused about this myself. I have the impression that the Github UI is somewhat redundant: the same "secrets" are accessible in multiple places, as far as I can tell. They've also changed the UI over the last year or so. At some point, we should change genkeys to give less ambiguous instructions.

But basically, the SSH key goes into Security > Deploy Keys

CleanShot 2024-01-26 at 13 06 40@2x

And the DOCUMENTER_KEY variable goes into Secrets and Variables > Actions > Repository Secrets

CleanShot 2024-01-26 at 13 07 18@2x

Those screenshots are from a standard setup where the documentation is deployed to the same repository. I guess for out-of-repo deployment those two settings are just in different repositories, but otherwise it's the same. I haven't set up out-of-repo deployment myself, though.

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

Thanks, @goerz - the pictures are worth a thousand words. I think I have set the keys and secrets correctly now. As you say I think Github must have changed the UI recently...

The error now is :

ssh: Could not resolve hostname juliagraphics: Temporary failure in name resolution
fatal: Could not read from remote repository.

so I'll try again later this weekend to see if this "temporary failure" really is temporary, or is the next obstacle for me.

from documenter.jl.

goerz avatar goerz commented on June 11, 2024

The line repo = "JuliaGraphics/LuxorManual" in your make.jl is wrong: that should probably be repo = "github.com/JuliaGraphics/LuxorManual.git", according to the documentation.

from documenter.jl.

cormullion avatar cormullion commented on June 11, 2024

Thanks! I’ll try that again (it didn’t work before, but perhaps it will work better with the new secrets…).

from documenter.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.