-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.01 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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/