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

Delete extra files from the 'gh-pages' branch on build. #64

Open
HarshKapadia2 opened this issue Feb 19, 2021 · 1 comment
Open

Delete extra files from the 'gh-pages' branch on build. #64

HarshKapadia2 opened this issue Feb 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@HarshKapadia2
Copy link
Owner

  • This repo uses GitHub Actions and has a CI/CD process that builds the web site from the master branch and pushes all the built files to the gh-pages branch from where GitHub Pages deploys the site.
  • If files are renamed in the master branch and the CI/CD process is run, the original file and the new renamed file are both found in the gh-pages branch.
  • The problem to be solved is that the original file should not be present in the gh-pages branch after the CI/CD process runs.
  • One solution could be to delete all the files in the gh-pages branch before the newly built files are pushed into the branch.
  • Please note that, I do not want the entire gh-pages branch to be deleted and created every time the CI/CD process runs, as I want to have a history of the previous versions of the site.
  • Do let me know if you have any other solution in mind.
@HarshKapadia2
Copy link
Owner Author

Issue still persists locally, but is solved for GitHub Actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant