Skip to content

Commit 745e2e4

Browse files
committed
create tags and releases page for github games repo
1 parent 4900320 commit 745e2e4

6 files changed

Lines changed: 36 additions & 1 deletion

book/17_tags_and_releases.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Tags and Releases
2+
3+
You may want to put tags or releases on certain commits in your code's history to mark specific states or places in time. To do this, you could use Git's **tag** feature, or you could use GitHub's **release** feature.
4+
5+
### Tags
6+
7+
A tag is a pointer that points to a specific commit. Unlike commits, tags are _not_ immutable. They can be moved and changed. We recommend using GitHub Releases in place of tags; a tag will still be created, but it will have a GitHub linked history that cannot be changed. Before we get into Releases, let's practice a bit with tags.
8+
9+
When creating a tag from the command line, you can make a "lightweight" or an "annotated" tag. The following example creates an annotated tag with the `-a` flag, names the tag `v1.0`, and connects it to whichever commit SHA is included.
10+
11+
- `git tag -a v1.0 <SHA>`
12+
13+
To see all tags, type `git tag --list`.
14+
15+
Another caveat with tags is that they are not automatically pushed up with commits. To push tags, type `git push <remote> --tags`.
16+
17+
### Releases
18+
19+
Releases are similar to tags, because they point to a specific commit and can be named like any other tag. However, releases can also include attached binaries. This means you can upload and store the compiled program for others to download, and have that compiled version be attached to the exact source code that composes it.
20+
21+
### Add a Release to GitHub-Games
22+
23+
1. On GitHub, navigate to the main page of the repository.
24+
1. Under your repository name, click Releases.
25+
1. Click Draft a new release.
26+
1. Type a version number for your release. Versions are based on Git tags. We recommend naming tags that fit within semantic versioning.
27+
1. Select a branch that contains the project you want to release. Usually, you'll want to release against your master branch, unless you're releasing beta software.
28+
1. Type a title and description that describes your release.
29+
1. If you're ready to publicize your release, click Publish release. Otherwise, click Save draft to work on it later.
30+
31+
> Notice that you could drag and drop or select files manually in the binaries box, or select "This is a pre-release" to notify users that it's not ready for production.

book/SUMMARY_CICDONLY_CIRCLE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* [Helpful Git Commands](16_helpful_git_commands.md)
3030
* [Viewing Local Changes](17_view_local_changes.md)
3131
* [Changing the `.yml` file](34_change_yml.md)
32+
* [Tags & Releases](17_tags_and_releases.md)
3233
* [Workflow Discussion](17_workflow_discussion.md)
3334

3435
## Project 4: Starting From Scratch

book/SUMMARY_CICDONLY_TRAVIS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* [Helpful Git Commands](16_helpful_git_commands.md)
3030
* [Viewing Local Changes](17_view_local_changes.md)
3131
* [Changing the `.yml` file](34_change_yml.md)
32+
* [Tags & Releases](17_tags_and_releases.md)
3233
* [Workflow Discussion](17_workflow_discussion.md)
3334

3435
## Project 4: Starting From Scratch

book/SUMMARY_CICD_FULLGH4D_CIRCLE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* [Reverting Commits](15_reverting_commits.md)
2929
* [Helpful Git Commands](16_helpful_git_commands.md)
3030
* [Viewing Local Changes](17_view_local_changes.md)
31+
* [Tags & Releases](17_tags_and_releases.md)
3132
* [Workflow Discussion](17_workflow_discussion.md)
3233

3334
## Project 4: Adding More Tests

book/SUMMARY_CICD_FULLGH4D_TRAVIS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* [Reverting Commits](15_reverting_commits.md)
2929
* [Helpful Git Commands](16_helpful_git_commands.md)
3030
* [Viewing Local Changes](17_view_local_changes.md)
31+
* [Tags & Releases](17_tags_and_releases.md)
3132
* [Workflow Discussion](17_workflow_discussion.md)
3233

3334
## Project 4: Adding More Tests
@@ -47,4 +48,3 @@
4748
* [Day 1 Activity Instructions](app_Day_1_activities.md)
4849
* [Workflow Guide](App_a_workflow_guide.md)
4950
* [End of Training: Cleaning Loaner PCs](App_clean_loaner_pc.md)
50-

book/SUMMARY_GH4D.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* [Reverting Commits](15_reverting_commits.md)
2525
* [Helpful Git Commands](16_helpful_git_commands.md)
2626
* [Viewing Local Changes](17_view_local_changes.md)
27+
* [Tags & Releases](17_tags_and_releases.md)
2728
* [Workflow Discussion](17_workflow_discussion.md)
2829

2930
## Project 4: Local Repository

0 commit comments

Comments
 (0)