Skip to content

Commit

Permalink
Add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylomyr committed Jun 2, 2020
1 parent 37bf6d3 commit 4878657
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: deploy

on:
push:
Expand All @@ -24,5 +24,15 @@ jobs:
- name: Test
run: dotnet test

- name: Publish
run: dotnet publish
deploy:
needs: build
runs-on: ubuntu-latest

steps:
- name: Pack
run: dotnet pack --configuration Release

- name: Push
run: dotnet nuget push **/*.nupkg
--api-key ${{ secrets.NUGET_KEY }}
--source https://api.nuget.org/v3/index.json
2 changes: 2 additions & 0 deletions StringEnumNet/StringEnumNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<ProjectUrl>https://github.com/kyrylomyr/StringEnumNet</ProjectUrl>
<PackageTags>dotnet enum string stringenum</PackageTags>
<Description>An implementation of the C# enumeration type defined by a set of named string constants that supports all common features of the native enum type.</Description>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 4878657

Please sign in to comment.