CI #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
inputs: | |
PackageVersion: | |
description: 'The version of the package to push to NuGet' | |
required: true | |
jobs: | |
build: | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'src/SSR.Net/SSR.Net.csproj' | |
BUILD_VERSION: "${{ github.event.inputs.PackageVersion }}" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build | |
run: dotnet pack $SOLUTION --configuration $BUILD_CONFIG /p:Version=$BUILD_VERSION | |
- name: Publish | |
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} |