Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish with github actions #6

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,31 @@ jobs:
run: dotnet build Source --no-restore
- name: Test
run: dotnet test Source\RetryableAssertions.Tests\RetryableAssertions.Tests.csproj --no-build --verbosity normal

publish:
runs-on: windows-2019
needs: test
if: github.ref_type == 'tag'
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore Source
- name: Build
run: dotnet build Source --no-restore
- name: Pack dotnet
run: dotnet pack --configuration Release Source
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: "**/*.nupkg"
if-no-files-found: error
- name: Publish NuGet
run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --no-symbols --api-key $env:NUGET_API_KEY
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}


Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net45;net6.0</TargetFrameworks>
<RootNamespace>Kontur.RetryableAssertions.Tests</RootNamespace>
<AssemblyName>Kontur.RetryableAssertions.Tests</AssemblyName>
</PropertyGroup>
Expand Down
23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

Loading