Skip to content

Commit

Permalink
Added nuget release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs committed Aug 8, 2023
1 parent 1ceeebb commit affe909
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 27 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/relase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release to NuGet

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

- name: Setup dotnet
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a #v3.0.3
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build
- name: Pack nugets
run: dotnet pack -c Release --no-build --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
45 changes: 18 additions & 27 deletions .idea/.idea.Passwordless-dotnet/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Sdk/Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<RootNamespace>Passwordless.Net</RootNamespace>
<AssemblyName>Passwordless.Net</AssemblyName>
<VersionPrefix>0.0.11</VersionPrefix>
<VersionSuffix>beta1</VersionSuffix>
<PackageId>Passwordless</PackageId>
<Authors>Bitwarden</Authors>
<RepositoryUrl>https://github.com/passwordless/passwordless-dotnet</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit affe909

Please sign in to comment.