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

Allow writing contents when deploying #625

Closed
wants to merge 3 commits into from

Conversation

masterleinad
Copy link
Contributor

@masterleinad masterleinad commented Feb 3, 2025

Alternative to #623. Fixes deplotibng, also see https://github.com/JamesIves/github-pages-deploy-action?tab=readme-ov-file#getting-started-airplane. The GITHUB_TOKEN used only has read permissions and we have to explicitly grant write permissions in this workflow.

@masterleinad masterleinad requested a review from dalg24 February 3, 2025 17:05
@JBludau
Copy link
Contributor

JBludau commented Feb 4, 2025

could you explain the differences between the two approaches?

@masterleinad
Copy link
Contributor Author

masterleinad commented Feb 4, 2025

could you explain the differences between the two approaches?

This one is very explicit about what it's doing, i.e., copy files from one directory to a specific branch. The other one (#623) deploys to Github pages and relies more on the settings in the repository to do what is necessary so it's more difficult to debug. The error I was running into last can be found in https://github.com/masterleinad/kokkos-core-wiki/actions/runs/13119609186.
We need slightly more permissions for this approach.

with:
name: documentation.tar.gz
path: ${{ env.docs-directory }}/generated_docs
# .nojekyll file is needed for GitHub Pages to know it's getting a ready webpage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm did you accidentally delete half the comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

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