Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Automatically Generating Html Documentation for each Pull Requests #1414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yoshihiro503
Copy link
Contributor

@yoshihiro503 yoshihiro503 commented Nov 29, 2024

Motivation for this change

@proux01

This will generate Html documentation of PR at the address: https://math-comp.github.io/analysis/doc/pr/[BRANCH-NAME]/

Checklist
  • added corresponding entries in CHANGELOG_UNRELEASED.md
  • added corresponding documentation in the headers

Reference: How to document

Reminder to reviewers

@affeldt-aist
Copy link
Member

There are 4 failures in the CI. 3 are maybe unrelated, but the first one is maybe causing a problem:


Run peaceiris/actions-gh-pages@v4
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Dump inputs
Setup auth token
Prepare publishing assets
Setup Git config
Create a commit
Push the commit or tag
  /usr/bin/git push origin gh-pages
  remote: Permission to math-comp/analysis.git denied to github-actions[bot].
  fatal: unable to access 'https://github.com/math-comp/analysis.git/': The requested URL returned error: 403
  Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"

Does it mean we are lacking some permission?

@yoshihiro503 yoshihiro503 force-pushed the yoshihiro503@ci-generate-html branch from bf49c2d to 47b7f98 Compare December 13, 2024 06:25
@yoshihiro503
Copy link
Contributor Author

@CohenCyril (cc: @affeldt-aist )
I would like this PR to automatically generate html docs from all PRs.
I want to use Github Actions to automatically deploy it to my gh-pages branch, but it doesn't seem to be working.

Do I need to configure anything about GITHUB_TOKEN?

@CohenCyril
Copy link
Member

I'm trying to figure what is the best practice here, meanwhile you can generate a token here:
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens (with just the bare necessary access rights)
And I will add it to the environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants