Skip to content

Release

Release #10

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
prerelease:
type: boolean
required: true
description: Prerelease or not
env:
BUILD_TYPE: Release
DOTNET_VERSION: 8
ASSEMBLY_NAME: Hosihikari.NativeInterop
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{env.DOTNET_VERSION}}.0.x
- name: Build
run: dotnet publish -c ${{env.BUILD_TYPE}}
- name: Publish NuGet
id: 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:
path: src/bin/Release/net${{env.DOTNET_VERSION}}.0/publish/