-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 959 Bytes
/
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
name: Release
on:
- workflow_dispatch
env:
BUILD_TYPE: Release
DOTNET_VERSION: 8
ASSEMBLY_NAME: Hosihikari.Minecraft.Foundation
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/