Sampler.GitHubTasks
0.4.1
Sampler tasks for GitHub integrations
Minimum PowerShell version
4.0
Installation Options
Owners
Copyright
(c) Gael Colas. All rights reserved.
Package Details
Author(s)
- Gael Colas
Tags
Sampler build tasks InvokeBuild
Functions
Dependencies
Release Notes
## [0.4.1] - 2026-03-31
### Added
- Created module with GitHub tasks from Sampler.
- Support to add assets to GitHub released by defining the `ReleaseAssets` key in `build.yml` GitHubConfig.
- Added logo.
- Added Get-GHOwnerRepoFromRemoteUrl function.
- Task `Publish_release_to_GitHub`
- Added `BuildCommit` parameter for CI-aware commit resolution that automatically detects the actual built commit from CI environment variables (`GITHUB_SHA`, `BUILD_SOURCEVERSION`) or falls back to local `git rev-parse HEAD`.
- Added `DryRun` parameter to simulate release creation without making actual changes, showing detailed information about what would be performed.
### Removed
- Removed GitHub Access Token from variable being displayed during build. Fixes Issue #17.
### Changed
- Fixed Erroring when "$ProjectName.$ModuleVersion.nupkg" is not available (i.e. when using asset list in `Build.yaml`).
- Fixed tasks to use the new Sampler version and its public functions.
- Fixed RootModule not loaded because of Module Manifest.
- Making this project use the prerelease version of Sampler for testing.
- Display GitHub Release info if already exists.
- GitHub New PR to use Owner/Repo name.
- Updated publish workflow in build.yml to Create GH PR upon release.
- Updated the Readme with the icon.
- Adding delay after creating release to make sure the tag is available at next git pull.
- Updating when to skip the Create Changelog PR task (adding -ListAvailable).
- Task `Publish_release_to_GitHub`
- Removed unnecessary code line ([issue #22](https://github.com/gaelcolas/Sampler.GitHubTasks/issues/22)).
- Now the command `New-GitHubRelease` only outputs verbose information
if `$VerbosePreference` says so.
- Fixed to use the actual built commit instead of latest commit on main branch, improving traceability and preventing CI pipeline conflicts.
- Fix PSGallery preview badge.
- Added DocGeneration
- Upload docs to Wiki ([issue #31](https://github.com/gaelcolas/Sampler.GitHubTasks/issues/31)).
- Update to Pester 5
- Use matrix strategy for azure-pipelines unit tests.
- Add Unit tests for public functions.
- Use new pack task `package_psresource_nupkg` from Sampler.
- Unpin PSResourceGet version.
### Fixed
- Fixed task error when the PackageToRelease does not exist (i.e. it's not a module being built creating the .nupkg).
- Fixed typo when adding debug output for GH task.
- Fixed using the `Set-SamplerTaskVariable` in GH tasks.
- Fixed the Azure DevOps pipeline to build on Ubuntu latest and Windows latest.
- Fixed adding a release when GitHub immutable releases are enabled. ([gaelcolas/Sampler#542](https://github.com/gaelcolas/Sampler/issues/542)).
FileList
- Sampler.GitHubTasks.nuspec
- Sampler.GitHubTasks.psm1
- en-US\Sampler.GitHubTasks-help.xml
- en-US\about_Sampler.GitHubTasks.help.txt
- Sampler.GitHubTasks.psd1
- tasks\New-Release.GitHub.build.ps1
- en-US\Sampler.GitHubTasks.strings.psd1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.4.1 (current version) | 1,255 | 3/31/2026 |
| 0.4.0-previe... | 1,951 | 2/11/2026 |
| 0.3.5-previe... | 55,927 | 6/8/2022 |
| 0.3.5-previe... | 2,453 | 1/25/2022 |
| 0.3.4 | 60,783 | 1/25/2022 |
| 0.3.4-previe... | 12 | 1/25/2022 |
| 0.3.3 | 869 | 11/8/2021 |
| 0.3.3-previe... | 11 | 11/8/2021 |
| 0.3.2-previe... | 38 | 9/29/2021 |
| 0.3.1 | 661 | 8/31/2021 |
| 0.3.1-previe... | 11 | 8/31/2021 |
| 0.3.0 | 956 | 7/2/2021 |
| 0.3.0-previe... | 12 | 7/2/2021 |
| 0.2.6 | 2,620 | 3/18/2021 |
| 0.2.5-previe... | 17 | 3/17/2021 |
| 0.2.4 | 76 | 3/10/2021 |
| 0.2.4-previe... | 17 | 3/10/2021 |
| 0.2.3 | 18 | 3/10/2021 |
| 0.2.3-previe... | 16 | 3/10/2021 |
| 0.2.3-previe... | 15 | 3/10/2021 |
| 0.2.3-previe... | 15 | 3/10/2021 |
| 0.2.2 | 31 | 3/9/2021 |
| 0.2.2-previe... | 27 | 3/9/2021 |
| 0.2.2-previe... | 15 | 3/9/2021 |
| 0.2.2-previe... | 15 | 3/9/2021 |
| 0.2.2-previe... | 15 | 3/9/2021 |
| 0.2.2-previe... | 15 | 3/9/2021 |
| 0.2.2-previe... | 15 | 3/9/2021 |
| 0.2.2-previe... | 15 | 3/8/2021 |
| 0.2.2-previe... | 15 | 3/8/2021 |
| 0.2.2-previe... | 15 | 3/8/2021 |
| 0.2.1 | 19 | 3/8/2021 |
| 0.2.1-previe... | 15 | 3/8/2021 |
| 0.2.0 | 30 | 3/8/2021 |
| 0.2.0-previe... | 16 | 3/8/2021 |
| 0.2.0-previe... | 15 | 3/8/2021 |