When submitting an extension, some files in your repo may not need to be included in your release archive when submitting to the Customisation Database at phpBB.com. You may have files for running TravisCI or other things included. I've compiled a .gitattributes and a .gitignore file for the repos, based off some from one of RMcGirr83's extensions. I've added export-ignore entries in the .gitattributes file for files that don't need to be in the release archive. In the .gitignore file I've added the vendor folder since it doesn't need uploading at all. If you've already implemented the TravisCI/EPV testing from this post, , then this will also exclude the files for TravisCI. The bash/batch files have comments explaining what is going on. You'll need to change before running it. You'll also have to change to your vendor/namespace, which is usually your phpBB.com username. For the bash file you'll also need to . The files from will need to be added/pushed to your git repo.
Using the git-release.sh\git-release.bat files is fairly straight forward. On the command-line(terminal) go to the directory for the git repo. Then run:
Linux:
Windows:
Example:
That will produce a zip file that contains the repo in this directory structure:
Example:
The zip file will be named:
Example:
- git-release.zip
- (769 Bytes) Downloaded 323 times
- win-git-release.zip
- (1.4 KiB) Downloaded 320 times
- git-dot-files.zip
- (866 Bytes) Downloaded 314 times