Skip to content
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
14 changes: 7 additions & 7 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Extract Version from tag
Expand All @@ -24,22 +24,22 @@ jobs:
const version = context.ref.replace('refs/tags/', '');
return version.slice(1);
- name: Change Package Version
working-directory: ./Src
working-directory: ./src
run: |
sed -i -e "s/<Version>[a-zA-Z0-9.-]*<\/Version>/<Version>${{ steps.tag.outputs.result }}<\/Version>/g" SmtpServer/SmtpServer.csproj
- name: Restore dependencies
working-directory: ./Src
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./Src
working-directory: ./src
run: dotnet build --configuration Release --no-restore
- name: Test
working-directory: ./Src
working-directory: ./src
run: |
dotnet test --configuration Release --no-restore --no-build --verbosity normal
- name: Build project and generate NuGet package
run: |
dotnet pack --configuration Release --output $GITHUB_WORKSPACE/out Src/SmtpServer/SmtpServer.csproj
dotnet pack --configuration Release --output $GITHUB_WORKSPACE/out src/SmtpServer/SmtpServer.csproj
- name: Push NuGet package
run: |
cd $GITHUB_WORKSPACE/out
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
push:
paths:
- 'Src/**'
- 'src/**'
- '.github/workflows/**'
branches: [ master ]
pull_request:
paths:
- 'Src/**'
- 'src/**'
- '.github/workflows/**'

jobs:
Expand All @@ -22,18 +22,18 @@ jobs:
#packages: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ./Src
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./Src
working-directory: ./src
run: dotnet build --configuration Release --no-restore
- name: Test
working-directory: ./Src
working-directory: ./src
run: |
dotnet test --configuration Release --no-restore --no-build --verbosity normal
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Src\SmtpServer.Tests\SmtpServer.Tests.csproj" />
<ProjectReference Include="..\..\Src\SmtpServer\SmtpServer.csproj" />
<ProjectReference Include="..\..\src\SmtpServer.Tests\SmtpServer.Tests.csproj" />
<ProjectReference Include="..\..\src\SmtpServer\SmtpServer.csproj" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Src\SmtpServer\SmtpServer.csproj" />
<ProjectReference Include="..\..\src\SmtpServer\SmtpServer.csproj" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Src/SmtpServer.sln → src/SmtpServer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmtpServer.Benchmarks", "Sm
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmtpServer.Tests", "SmtpServer.Tests\SmtpServer.Tests.csproj", "{4957B054-F07E-402D-A3EC-7EBA0B3018B7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WorkerService", "..\Examples\WorkerService\WorkerService.csproj", "{EE0C474F-8404-4FB6-865F-A034B5DB77FE}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WorkerService", "..\examples\WorkerService\WorkerService.csproj", "{EE0C474F-8404-4FB6-865F-A034B5DB77FE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{6BAD2430-FA6B-4929-8BD7-66663CA02207}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleApp", "..\Examples\SampleApp\SampleApp.csproj", "{DB671922-7280-4854-9C4F-0BA073B5F1E2}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleApp", "..\examples\SampleApp\SampleApp.csproj", "{DB671922-7280-4854-9C4F-0BA073B5F1E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.