Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LT-6045: update workflow to publish nuget package #18

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading