Skip to content
Merged
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
28 changes: 28 additions & 0 deletions .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish custom NuGet package version
on:
workflow_dispatch:
inputs:
package_version:
description: 'NuGet package version (e.g. 6.0.0-beta.1041)'
required: true

jobs:
pre-release:
runs-on: ubuntu-latest
name: Publish NuGet packages
environment: AsyncAPI
strategy:
matrix:
package-name: [ "LEGO.AsyncAPI", "LEGO.AsyncAPI.Readers", "LEGO.AsyncAPI.Bindings" ]
steps:
- name: Checkout repository
uses: actions/checkout@v1

- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v1

- name: Build ${{ matrix.package-name }} project and pack NuGet package
run: dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=${{ github.event.inputs.package_version }}

- name: Push generated package to NuGet
run: dotnet nuget push out-${{ matrix.package-name }}/*.nupkg -s https://api.nuget.org/v3/index.json --skip-duplicate -n --api-key ${{secrets.NUGET}}
Loading