Skip to content

Version 1.0.6

Version 1.0.6 #29

Workflow file for this run

name: Publish to NuGet
on:
push:
tags:
- '*'
env:
BUILD_CONFIG: Release
SOLUTION: AcrylicUI.sln
PROJECT: AcrylicUI\AcrylicUI.csproj
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: nuget restore ${{env.SOLUTION}}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish to NuGet
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: ${{env.PROJECT}}
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Pack
run: dotnet pack --configuration Release --output nupkgs
- name: List nupkgs directory
run: dir /s /b
# - name: Publish to NuGet
# run: dotnet nuget push nupkgs/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}