https://github.com/mathieumack/mygithubactions
Repository that contains some github actions used for my repositories for CI and CD
https://github.com/mathieumack/mygithubactions
Last synced: 2 months ago
JSON representation
Repository that contains some github actions used for my repositories for CI and CD
- Host: GitHub
- URL: https://github.com/mathieumack/mygithubactions
- Owner: mathieumack
- License: mit
- Created: 2023-09-19T09:04:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T15:41:06.000Z (over 1 year ago)
- Last Synced: 2025-09-06T00:47:51.585Z (10 months ago)
- Language: PowerShell
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MyGithubActions
Private repository that contains custom GitHub Actions used to build all of my nuget packages
## Template workflows :
### Dotnet library
`.github/workflows/dotnetlib.yml`
This template workflow will build a dotnet library and publish it to nuget.org
#### NuGet Package Publishing Triggers
The workflow will publish packages to NuGet.org when any of the following conditions are met:
1. **Main branch**: Push to `refs/heads/main`
2. **Feature branches**: Branch name starts with `feature/`
3. **Copilot branches**: Branch name starts with `copilot/`
4. **Manual trigger**: `publishToNuget` input is set to `true`
5. **PR message request**: The last message in a Pull Request contains keywords indicating a build/package request
#### PR Message Detection
The workflow can automatically detect when a Pull Request requests a package build. The following keywords in PR comments or description will trigger a NuGet publish:
- "request to build and package"
- "please build and package"
- "build and package this version"
- "publish to nuget"
- "release to nuget"
**Example**: Add a comment to your PR with "I request to build and package this version" and the workflow will publish to NuGet when it runs.
## Composite actions
### actions/nugetversion
Generates version numbers for NuGet packages based on existing versions in the NuGet repository.
### actions/buildandtestdotnet
Builds and tests .NET projects with specified version information.