feat(github-actions): add workflow to automate GitHub release creation#359
Merged
Conversation
Introduced a new GitHub Actions workflow `CreateRelease` to automate the process of creating GitHub releases. Added support for tagging specific commits or branches and generating corresponding releases. Enhanced `IGithubReleaseHelper` with methods for release creation and artifact uploads, along with detailed documentation updates.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds first-class support for creating GitHub Releases from Atom builds and wires it into a new manually triggered GitHub Actions workflow, so releases can be created (and later have assets uploaded) via Atom targets.
Changes:
- Added
IGithubReleaseHelper.CreateRelease(...)with a default implementation that creates a GitHub release (optionally targeting a specific branch/SHA) via the GitHub API. - Introduced a new generated GitHub Actions workflow (
CreateRelease) plus corresponding_atomtarget/workflow definition to run release creation. - Documented the release helper usage in the GitHub workflows module docs.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/Invex.Atom.Module.GithubWorkflows/Helpers/IGithubReleaseHelper.cs |
Adds CreateRelease(...) helper to create releases (and tags) via Octokit. |
Invex.Atom.sln.DotSettings |
Adds “Commitish” to the JetBrains user dictionary. |
docs/modules/github-workflows.md |
Documents release creation and asset upload helpers. |
.github/workflows/CreateRelease.yml |
Adds the generated manual CreateRelease GitHub Actions workflow. |
_atom/Targets/IDeployTargets.cs |
Adds CreateGithubRelease target that calls CreateRelease(...). |
_atom/IBuild.cs |
Adds the CreateRelease workflow definition and GitHub token permissions/secret injection. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introduced a new GitHub Actions workflow
CreateReleaseto automate the process of creating GitHub releases. Added support for tagging specific commits or branches and generating corresponding releases. EnhancedIGithubReleaseHelperwith methods for release creation and artifact uploads, along with detailed documentation updates.