Skip to content

Commit 89b0df9

Browse files
committed
Add project files.
1 parent 59bf653 commit 89b0df9

File tree

6 files changed

+796
-0
lines changed

6 files changed

+796
-0
lines changed

.github/workflows/nuget.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Deploy Hkx2Library to NuGet"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
env:
9+
nuget: "https://api.nuget.org/v3/index.json"
10+
11+
jobs:
12+
deploy:
13+
name: "Deploy Hkx2Library"
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
csproj: "Hkx2Library"
18+
build: "${{ github.workspace }}/build"
19+
20+
steps:
21+
- name: "Checkout"
22+
uses: actions/checkout@v2
23+
24+
- name: "Install DotNET"
25+
uses: actions/setup-dotnet@v1
26+
with:
27+
dotnet-version: "7.0.x"
28+
29+
- name: "Restore packages"
30+
run: dotnet restore src/${{ env.csproj }}.csproj
31+
32+
- name: "Get Version"
33+
id: version
34+
uses: battila7/get-version-action@v2
35+
36+
- name: "Build project"
37+
run: dotnet build src/${{ env.csproj }}.csproj --no-restore -c Release -p:Version=${{ steps.version.outputs.version-without-v }}
38+
39+
- name: "Pack project"
40+
run: dotnet pack src/${{ env.csproj }}.csproj --no-build --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.build }}
41+
42+
- name: "Push package"
43+
run: dotnet nuget push ${{ env.build }}/*.nupkg -k ${{ secrets.nuget_auth }} -s ${{ env.nuget }}

Hkx2Library.sln

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33110.190
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hkx2Library", "src\Hkx2Library.csproj", "{41B93613-F68D-4CE8-BAA4-283B3834ED86}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "tests\Tests.csproj", "{94D5C6C7-1593-478C-B9CB-395633CC85D1}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{41B93613-F68D-4CE8-BAA4-283B3834ED86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{41B93613-F68D-4CE8-BAA4-283B3834ED86}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{41B93613-F68D-4CE8-BAA4-283B3834ED86}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{41B93613-F68D-4CE8-BAA4-283B3834ED86}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{94D5C6C7-1593-478C-B9CB-395633CC85D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{94D5C6C7-1593-478C-B9CB-395633CC85D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{94D5C6C7-1593-478C-B9CB-395633CC85D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{94D5C6C7-1593-478C-B9CB-395633CC85D1}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {E72ED097-73FA-45FD-9AB8-BD4366991A09}
30+
EndGlobalSection
31+
EndGlobal

0 commit comments

Comments
 (0)