961 B
961 B
Making a release on GitHub
Today's journey is using git and github to release PwshBlog
The following are my notes on the matter.
Making an archive
Normally when you make a release, you want to make an archive of the release available for people to download. You could use git's built-in tags feature alone, but that will include other bits of your repository that you probably don't want to include.
Enter git archive
The following are steps to creating the archive
-
Create a
.gitattributesfile -
Add lines like the following
.gitignore export-ignore appveyor.yml export-ignore -
Add and commit the
.gitattributesfile for it to work -
Create a tag
git tag -a v0.9.0 -
Now create the archive
git archive --format=zip --prefix=PwshBlog/ v0.9.0 -o v0.9.0.zip -
Go create your release on github and drag in the created archive!
Tags: git, pwshblog, github