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

Documentation for branch gh-pages #211

Open
zacharyblasczyk opened this issue Aug 29, 2024 · 0 comments
Open

Documentation for branch gh-pages #211

zacharyblasczyk opened this issue Aug 29, 2024 · 0 comments

Comments

@zacharyblasczyk
Copy link

Please document that .gitignore should not have *.tgz in the gh-pages branch.

From what I have seen, it should only include a CNAME, README.md, your *.tgz files, and a index.yaml. The index and tgz's coming from this action.

It is common to start a project with a /chart/${CHART_NAME}and a .gitignore while testing.

That ignore file will likely include

# Ignore all .tgz files
*.tgz

The readme currently states:

Pre-requisites

  1. A GitHub repo containing a directory with your Helm charts (default is a folder named /charts, if you want to
    maintain your charts in a different directory, you must include a charts_dir input in the workflow).
  2. A GitHub branch called gh-pages to store the published charts.

When you create a gh-pages branch manually, it will copy over all the files in the main branch including the .gitignore and that will lead to helm/[email protected] erroring out

The following paths are ignored by one of your .gitignore files:
${CHART_NAME}-x.y.z.tgz
hint: Use -f if you really want to add them.
hint: Disable this message with "git config advice.addIgnoredFile false"
Error: exit status 1
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

No branches or pull requests

1 participant