Choose an Open Source License for software
https://choosealicense.com/
Creative Commons, for publishing, etc.
https://creativecommons.org/share-your-work/
How to make a release of software (from Edwards Lab, SDSU)
https://edwards.sdsu.edu/research/how-to-make-a-release-of-software/
GitHub Guide: Making your code citable
https://guides.github.com/activities/citable-code/