diff --git a/.github/workflows/relase.yml b/.github/workflows/relase.yml new file mode 100644 index 0000000..7686f1a --- /dev/null +++ b/.github/workflows/relase.yml @@ -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 \ No newline at end of file diff --git a/.idea/.idea.Passwordless-dotnet/.idea/workspace.xml b/.idea/.idea.Passwordless-dotnet/.idea/workspace.xml index 8df6e57..d841621 100644 --- a/.idea/.idea.Passwordless-dotnet/.idea/workspace.xml +++ b/.idea/.idea.Passwordless-dotnet/.idea/workspace.xml @@ -4,16 +4,7 @@