GitHub helps you quickly add a license to your repository, as an alternative for adding your own text/markdown file.
In your repository, click 'Create new file'
On next page:
LICENSE.md
or LICENSE.txt
as the new file's file name.Choose your preferred license.
The licence you could see in the repository details:
From Q&A - How to add license to a existing Github project