mirror of
https://github.com/yawaflua/SPWorldsWrapper.git
synced 2025-12-10 04:29:28 +02:00
Create nuget.yml
This commit is contained in:
29
.github/workflows/nuget.yml
vendored
Normal file
29
.github/workflows/nuget.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: NetLicensing C# Client - Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [release]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-nuget:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup .NET Core
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.x.x'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build --configuration Release --no-restore
|
||||||
|
- name: Set output
|
||||||
|
id: vars
|
||||||
|
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||||
|
- name: Publish to NuGet
|
||||||
|
uses: brandedoutcast/publish-nuget@v2
|
||||||
|
with:
|
||||||
|
PROJECT_FILE_PATH: NetLicensingClient.csproj
|
||||||
|
VERSION_REGEX: ${{ steps.vars.outputs.tags }}
|
||||||
|
TAG_FORMAT: '*'
|
||||||
|
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
|
||||||
Reference in New Issue
Block a user