Prerelease #5
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: Prerelease | |
on: | |
workflow_dispatch: | |
inputs: | |
build: | |
required: true | |
description: Pre Release Build Number | |
type: string | |
jobs: | |
build: | |
name: Create Prerelease | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
- uses: microsoft/setup-msbuild@v1 | |
- run: dotnet build SigningServer.sln --configuration=Release -p:CopyToDist=true -p:BuildNumber=${{ inputs.build }} -p:VersionSuffix=alpha.${{ inputs.build }} | |
- run: dotnet pack SigningServer.sln --configuration=Release -p:BuildNumber=${{ inputs.build }} -p:VersionSuffix=alpha.${{ inputs.build }} | |
- name: Archive Server Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: SigningServer.Server | |
path: | | |
Dist/${{ matrix.configuration }}/SigningServer.Server/**/*.* | |
- name: Archive Client Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: SigningServer.Client | |
path: | | |
Dist/${{ matrix.configuration }}/SigningServer.Client/**/*.* | |
- name: Archive Client .net Tool | |
uses: actions/upload-artifact@v2 | |
with: | |
name: SigningServer.Client.Tool | |
path: | | |
SigningServer.Client/bin/${{ matrix.configuration }}/*.nupkg | |
- name: Publish NuGet (Client) | |
run: dotnet nuget push SigningServer.Client\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json | |
- name: Publish NuGet (Standalone Client) | |
run: dotnet nuget push SigningServer.StandaloneClient\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json |