Skip to content

Release

Release #16

Workflow file for this run

name: Release
on:
- workflow_dispatch
env:
BUILD_TYPE: Release
DOTNET_VERSION: 8
ASSEMBLY_NAME: Hosihikari.PluginManager
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: ${{ env.DOTNET_VERSION }}.0.x
- name: Build
run: dotnet publish -c ${{ env.BUILD_TYPE }}
- name: Publish NuGet
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/${{ env.ASSEMBLY_NAME }}.csproj
VERSION_FILE_PATH: Directory.Build.props
TAG_COMMIT: false
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
NO_BUILD: true
- name: Upload Artifact
uses: actions/[email protected]
with:
name: ${{ env.ASSEMBLY_NAME }}.Publish
path: src/bin/Release/net${{env.DOTNET_VERSION}}.0/publish/