This repository contains pack and publish action to generate Nuget Packages out of Protobuf files and publish them.
The pack
action generate a Nuget package out of the given Protobuf files and has the following inputs:
Required The name of the NuGet package.
Required The version of the NuGet package.
Required The path to the folder containing Protobuf files.
Required The path to the put generated package at.
The name of the company publishing the package. The default value is Education Perfect
.
The authors of the package. The default value is Education Perfect
.
uses: EducationPerfect/protobuf-nuget/pack@v1.0
with:
package-name: 'AwesomePackage'
package-version: 1.0.0
protobuf-dir-path: ./protos
output-path: ./packages
authors: 'Team Void'
The public
action publish the given Nuget packages to s given source and has the following inputs:
Required The path of the NuGet package. (e.g. ./packages/*.nupkg)
Required The source for hosting NuGet packages.
Required The API Key of the source.
uses: EducationPerfect/protobuf-nuget/publish@v1.0
with:
packages: ./packages/*.nupkg
source: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
api-key: ${{ github.token }}