Skip to content

Commit

Permalink
Merge pull request #18 from LykkeBusinessPlatform/LT-6045
Browse files Browse the repository at this point in the history
LT-6045: update workflow to publish nuget package
  • Loading branch information
samodovdi authored Feb 12, 2025
2 parents b33733d + 28c1050 commit a698b42
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 106 deletions.
106 changes: 0 additions & 106 deletions .github/workflows/nuget-lykke-business.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/publish-nuget-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish NuGet Package

on:
workflow_dispatch:
inputs:
version:
type: string
description: 'Version number (e.g. v1.0.0)'
required: true
default: 'v1.0.0'
create_release:
type: boolean
description: 'Create a GitHub release'
required: true
default: true
update_changelog:
type: boolean
description: 'Update CHANGELOG.md'
required: true
default: true
release_name:
type: string
description: 'Release name. If empty, will be extracted from CHANGELOG.md or default value [Release ${VERSION}] will be used'
required: false
excluded_vulnerable_packages:
type: string
description: 'Comma-separated list of packages to exclude from vulnerability check'
required: false
default: ''
excluded_deprecated_packages:
type: string
description: 'Comma-separated list of packages to exclude from deprecated check'
required: false
default: ''
jobs:
publish-nuget:
name: Publish Nuget Package
uses: LykkeBusiness/.github/.github/workflows/publish-nuget-package.yml@master
with:
version: ${{ github.event.inputs.version }}
create_release: ${{ fromJSON(github.event.inputs.create_release) }}
update_changelog: ${{ fromJSON(github.event.inputs.update_changelog) }}
release_name: ${{ github.event.inputs.release_name }}
excluded_vulnerable_packages: ${{ github.event.inputs.excluded_vulnerable_packages }}
excluded_deprecated_packages: ${{ github.event.inputs.excluded_deprecated_packages }}
path: '.'
nuget-project-path: './src/Lykke.Cqrs'
changelog_path: '.'
secrets:
inherit
1 change: 1 addition & 0 deletions Lykke.Cqrs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
global.json = global.json
CHANGELOG.md = CHANGELOG.md
.github\workflows\publish-nuget-package.yml = .github\workflows\publish-nuget-package.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lykke.Cqrs", "src\Lykke.Cqrs\Lykke.Cqrs.csproj", "{5E6D3D86-33B6-4821-9F40-0FCFD4824EA0}"
Expand Down

0 comments on commit a698b42

Please sign in to comment.