feat(github-actions): add workflow to automate GitHub release creation#358
Closed
DecSmith42 wants to merge 4 commits into
Closed
feat(github-actions): add workflow to automate GitHub release creation#358DecSmith42 wants to merge 4 commits into
DecSmith42 wants to merge 4 commits into
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.
Updated `CreateRelease` in `IDeployTargets` to use semantic versioning format (`Major.Minor.Patch`) for GitHub release creation. This ensures consistent and precise versioning during release execution.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class “create GitHub release” support to Atom’s GitHub Workflows module and wires it into this repo’s generated workflows so a manual GitHub Actions run can tag and publish a release.
Changes:
- Added
IGithubReleaseHelper.CreateRelease(...)for creating releases (optionally targeting a branch/SHA) with a dry-run behavior outside GitHub Actions. - Introduced a new generated workflow
CreateReleaseplus an_atomtarget (CreateGithubRelease) to execute it. - Updated GitHub Workflows module docs and IDE dictionary settings for “commitish”.
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(...) default interface method using Octokit and dry-run behavior. |
| Invex.Atom.sln.DotSettings | Adds “Commitish” to user dictionary. |
| docs/modules/github-workflows.md | Documents the new release helper and provides examples. |
| .github/workflows/CreateRelease.yml | New generated workflow to run SetupBuildInfo then CreateGithubRelease. |
| _atom/Targets/IDeployTargets.cs | Adds CreateGithubRelease target that calls the new helper. |
| _atom/IBuild.cs | Registers the new CreateRelease workflow definition and required token permissions. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| $"Unable to parse GitHub repository id from '{Github.VariableNames.RepositoryId}' (value: '{Github.Variables.RepositoryId}')."); | ||
|
|
||
| return await client.Repository.Release.Create(repositoryId, newRelease); | ||
|
|
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.