Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/havendv/workflows
Reusable workflows
https://github.com/havendv/workflows
auto-release cd ci continious-delivery continious-integration conventional-commits dotnet github-actions msbuild nuget publish release-notes release-notes-generator reusable-workflows
Last synced: 4 months ago
JSON representation
Reusable workflows
- Host: GitHub
- URL: https://github.com/havendv/workflows
- Owner: HavenDV
- Created: 2021-10-17T09:26:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T02:44:45.000Z (5 months ago)
- Last Synced: 2024-10-06T09:22:36.584Z (4 months ago)
- Topics: auto-release, cd, ci, continious-delivery, continious-integration, conventional-commits, dotnet, github-actions, msbuild, nuget, publish, release-notes, release-notes-generator, reusable-workflows
- Homepage:
- Size: 216 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using
```yaml
name: Build, test and publish
on: [ push ]jobs:
build-test-publish:
name: Build, test and publish
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
secrets:
nuget-key: ${{ secrets.NUGET_KEY }}
with:
asset-path1: src/installers/UpworkPdfGenerator.Installers.Wpf.NetFramework/UpworkPdfGenerator.msi
asset-name1: UpworkPdfGenerator.msi
```# Explanation
## [Build, test and publish](.github/workflows/dotnet_build-test-publish.yml)
This workflow is for developing and releasing a NuGet package by a small number of people on the same branch.
It is based on the [Conventional Commits specification](https://www.conventionalcommits.org/) and
will only release new releases if they contain fix/feat/perf commit types.
It automatically generates a build number (BUILD_NUMBER environment variable).
It also automatically generates Package Release Notes based on the latest commits (PACKAGE_RELEASE_NOTES environment variable).
Requires a nuget-key secret that will be able to load your NuGet packages.### Inputs
| name | type | default |
|---------------------------------------------|---------|---------------------|
| os | string | 'ubuntu-latest' |
| dotnet-version | string | '6.0.x' |
| additional-dotnet-version | string | '' |
| include-prerelease | boolean | true |
| workloads | string | '' |
| windows-sdk-version | string | '' |
| windows-sdk-version2 | string | '' |
| windows-sdk-version3 | string | '' |
| windows-sdk-version4 | string | '' |
| generate-build-number | boolean | true |
| fetch-depth | number | 0 |
| conventional-commits-publish-conditions | boolean | true |
| project-path | string | '' |
| additional-project-path | string | '' |
| configuration | string | 'Release' |
| use-msbuild | boolean | false |
| vs-prerelease | boolean | true |
| run-tests | boolean | true |
| asset-path1 | string | '' |
| asset-path2 | string | '' |
| asset-path3 | string | '' |
| asset-name1 | string | '' |
| asset-name2 | string | '' |
| asset-name3 | string | '' |
| asset-content-type1 | string | 'application/x-msi' |
| asset-content-type2 | string | 'application/x-msi' |
| asset-content-type3 | string | 'application/x-msi' |
| deploy-web-assembly-path | string | '' |
| deploy-web-assembly-repo | string | '' |
### Secrets
| name | type | default |
|---------------------------------------------|---------|---------------------|
| nuget-key | string | '' |
| personal-token | string | '' |# Contacts
* [mail](mailto:[email protected])