Skip to content

Commit 044cba3

Browse files
committed
.NET library
1 parent 74cbe0f commit 044cba3

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to NuGet.org
2+
on: { release: { types: [ published ] } }
3+
jobs:
4+
publish:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-dotnet@v3
9+
- name: Create package(s)
10+
run: >
11+
dotnet pack
12+
--configuration Release
13+
-property:ContinuousIntegrationBuild=true
14+
-property:Version=${GITHUB_REF_NAME#v}
15+
- name: Upload package(s)
16+
run: >
17+
dotnet nuget push */bin/Release/*.nupkg
18+
--source https://api.nuget.org/v3/index.json
19+
--api-key ${{ secrets.NUGET_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin/
2+
obj/
3+
4+
.vs/
5+
.vscode/

Elasticstretch.sln

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{66CAB7DF-DA2C-4AA9-8770-16C5E08F7760}"
7+
ProjectSection(SolutionItems) = preProject
8+
.gitignore = .gitignore
9+
icon.png = icon.png
10+
LICENSE = LICENSE
11+
.github\workflows\publish.yml = .github\workflows\publish.yml
12+
README.md = README.md
13+
EndProjectSection
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(SolutionProperties) = preSolution
21+
HideSolutionNode = FALSE
22+
EndGlobalSection
23+
GlobalSection(ExtensibilityGlobals) = postSolution
24+
SolutionGuid = {79F1651A-1308-4D1C-8954-0ABEACCA236E}
25+
EndGlobalSection
26+
EndGlobal

0 commit comments

Comments
 (0)