-
Notifications
You must be signed in to change notification settings - Fork 18
docs: normalize README structure and add RELEASES.md #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+119
−179
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "MD013": false, | ||
| "MD024": { | ||
| "siblings_only": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # Releases | ||
|
|
||
| Releases follow the pattern `v{SEMVER}-{STADIUM}` (e.g., `v1.0.0-azteca`). Codenames are drawn alphabetically from the [stadium list](CHANGELOG.md#stadium-release-names) of famous football stadiums that hosted FIFA World Cup matches. | ||
|
|
||
| ## Workflow | ||
|
|
||
| ### 1. Create a Release Branch | ||
|
|
||
| Branch protection prevents direct pushes to `master`, so all release prep goes through a PR: | ||
|
|
||
| ```bash | ||
| git checkout master && git pull | ||
| git checkout -b release/v1.0.0-azteca | ||
| ``` | ||
|
|
||
| ### 2. Update CHANGELOG.md | ||
|
|
||
| Move items from `[Unreleased]` to a new release section in [CHANGELOG.md](CHANGELOG.md): | ||
|
|
||
| ```bash | ||
| # Move items from [Unreleased] to new release section | ||
| # Example: [1.0.0 - azteca] - 2026-01-22 | ||
| git add CHANGELOG.md | ||
| git commit -m "docs: prepare changelog for v1.0.0-azteca release" | ||
| git push origin release/v1.0.0-azteca | ||
| # Open a PR, get it reviewed, and merge into master | ||
| ``` | ||
|
|
||
| ### Pre-release Checklist | ||
|
|
||
| Before creating the tag, verify all of the following: | ||
|
|
||
| - [ ] `CHANGELOG.md` `[Unreleased]` section is moved to a new versioned release entry | ||
| - [ ] `dotnet build --configuration Release` passes | ||
| - [ ] `dotnet test --settings .runsettings` passes | ||
| - [ ] Stadium name is valid and follows alphabetical order (see [stadium list](CHANGELOG.md#stadium-release-names)) | ||
| - [ ] All CI checks on `master` are green | ||
|
|
||
| ### 3. Create and Push Tag | ||
|
|
||
| After the PR is merged, create and push the version tag from `master`: | ||
|
|
||
| ```bash | ||
| git checkout master && git pull | ||
| git tag -a v1.0.0-azteca -m "Release 1.0.0 - Azteca" | ||
| git push origin v1.0.0-azteca | ||
| ``` | ||
|
|
||
| ### 4. Automated CD Workflow | ||
|
|
||
| Pushing the tag triggers the CD workflow which automatically: | ||
|
|
||
| 1. Validates the stadium name | ||
| 2. Builds and tests the project in Release configuration | ||
| 3. Publishes Docker images to GitHub Container Registry with three tags | ||
| 4. Creates a GitHub Release with auto-generated changelog from commits | ||
|
|
||
| > 💡 Always update CHANGELOG.md before creating the tag. See [CHANGELOG.md](CHANGELOG.md) for the complete stadium list (A-Z) and release history. | ||
|
|
||
| ## Docker Pull | ||
|
|
||
| Each release publishes multiple tags for flexibility: | ||
|
|
||
| ```bash | ||
| # By semantic version (recommended for production) | ||
| docker pull ghcr.io/nanotaboada/dotnet-samples-aspnetcore-webapi:1.0.0 | ||
|
|
||
| # By stadium name (memorable alternative) | ||
| docker pull ghcr.io/nanotaboada/dotnet-samples-aspnetcore-webapi:azteca | ||
|
|
||
| # Latest release | ||
| docker pull ghcr.io/nanotaboada/dotnet-samples-aspnetcore-webapi:latest | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.