- Click the big green button
Use this template
or click here. - Enter a Repository name and click
Create repository from template
- Head over to the created repository and complete the setup.
- In a new browser tab, go to the token settings page of your account.
- Click "generate new token".
- Assign any name like "workflow token", click the "workflow" check box (which will automatically select everything under "repo" as well), then scroll down and click "Generate token".
- Copy the token by clicking the icon with the two overlapping squares.
- In the other browser tab with your repository, click Settings -> Secrets -> Actions.
- Set the name of the secret to
REPO_SETUP_TOKEN
and paste the token, then click "Add secret"
- In the a new repository, complete the project setup by editing the
cookiecutter.json
file. - Hit cmd + S and then Enter to perform a commit (the commit message doesn't really matter).
- Wait Setup Repository Action to complete.
- That's it, easy isn't it?
If you have anything to add, please reply in this Twitter thread.
Builds and releases can be automated using GitHub Actions. Tagging a commit with a version tag will trigger a release.
git commit v1.0.0 -m "Release message here!"
git push --tags
On June 6, 2019, GitHub introduced Repository Templates giving users an easy way to share boilerplate for their projects. This feature is fantastic, but lacking adoption to my knowledge and opinion for one reason... Read the full blog post to learn how to template new projects using repository templates and GitHub Actions.