Closed epasveer closed 2 years ago
This works well to trim a release.
From my notes.
erniep@gracie:/peak/src/seer/notes$ more README.github
#
# To manually create a tar file of Seer release (something that GitHub would create), run these commands.
#
% cd seer/
% git archive --format=tar.gz --prefix=seer-1.9/ HEAD > ~/seer-1.9.tar.gz
# git archive looks at this file for a list of files and directories to exclude.
seer/.gitattributes
The .gitattributes file looks like:
erniep@gracie:/peak/src/seer$ more .gitattributes
.gitattributes export-ignore
.gitignore export-ignore
.github/ export-ignore
debian/ export-ignore
icons/ export-ignore
images/ export-ignore
notes/ export-ignore
scripts/ export-ignore
tests/ export-ignore
With the .gitattributes file, the GitHub release mechanism will trim each release.
Closing this task.
Had to re-add this. It's needed to the CI/CD pipeline.
.github
When creating a release for seer, github uses "git-archive". This includes everything in the project tree.
Look at using a .gitattributes file (at the project top-leve) to trim away the non-relevant parts of the Seer project tree. (eg: tests/)
This can be tested by using git-archive manually.