@@ -2,17 +2,17 @@ name: Contracts package workflow
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : ["main"]
66 paths :
7- - ' Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/**'
7+ - " Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/**"
88 pull_request :
9- branches : [ "main" ]
9+ branches : ["main"]
1010 paths :
11- - ' Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/**'
11+ - " Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts.IntegrationEvents/**"
1212
1313env :
14- CHAPTER_DIR : ' Chapter-3-microservice-extraction/Fitnet.Contracts/Src'
15- NUGET_SOURCE_NAME : " evolutionaryArchitecture "
14+ CHAPTER_DIR : " Chapter-3-microservice-extraction/Fitnet.Contracts/Src"
15+ NUGET_SOURCE_NAME : " EvolutionaryArchitecture "
1616
1717jobs :
1818 build :
@@ -22,22 +22,22 @@ jobs:
2222 runs-on : ubuntu-latest
2323 name : Build
2424 steps :
25- - uses : actions/checkout@v3
26- - name : Setup .NET
27- uses : actions/setup-dotnet@v3
28- with :
29- dotnet-version : 9.0.x
30- - name : Add Evolutionary Architecture Nuget Source
31- uses : evolutionary-architecture/evolutionary-architecture-by-example/.github@main
32- with :
25+ - uses : actions/checkout@v3
26+ - name : Setup .NET
27+ uses : actions/setup-dotnet@v3
28+ with :
29+ dotnet-version : 9.0.x
30+ - name : Add Evolutionary Architecture Nuget Source
31+ uses : evolutionary-architecture/evolutionary-architecture-by-example/.github@main
32+ with :
3333 github-token : ${{ secrets.GITHUB_TOKEN }}
3434 owner : ${{ github.repository_owner }}
3535 path : ${{ env.CHAPTER_DIR }}
3636 nuget-source-name : ${{ env.NUGET_SOURCE_NAME }}
37- - name : Restore dependencies
38- run : dotnet restore
39- - name : Build
40- run : dotnet build --no-restore
37+ - name : Restore dependencies
38+ run : dotnet restore
39+ - name : Build
40+ run : dotnet build --no-restore
4141
4242 pack :
4343 defaults :
@@ -48,19 +48,19 @@ jobs:
4848 if : github.ref == 'refs/heads/main'
4949 name : Pack and Publish
5050 steps :
51- - uses : actions/checkout@v3
52- - name : Setup .NET
53- uses : actions/setup-dotnet@v3
54- with :
55- dotnet-version : 9.0.x
56- - name : Add Evolutionary Architecture Nuget Source
57- uses : evolutionary-architecture/evolutionary-architecture-by-example/.github@main
58- with :
51+ - uses : actions/checkout@v3
52+ - name : Setup .NET
53+ uses : actions/setup-dotnet@v3
54+ with :
55+ dotnet-version : 9.0.x
56+ - name : Add Evolutionary Architecture Nuget Source
57+ uses : evolutionary-architecture/evolutionary-architecture-by-example/.github@main
58+ with :
5959 github-token : ${{ secrets.GITHUB_TOKEN }}
6060 owner : ${{ github.repository_owner }}
6161 path : ${{ env.CHAPTER_DIR }}
6262 nuget-source-name : ${{ env.NUGET_SOURCE_NAME }}
63- - name : Pack Project
64- run : dotnet pack Fitnet.Contracts.IntegrationEvents/Fitnet.Contracts.IntegrationEvents.csproj -c Release
65- - name : Publish Packages
66- run : dotnet nuget push "Fitnet.Contracts.IntegrationEvents/bin/Release/EvolutionaryArchitecture.Fitnet.Contracts.IntegrationEvents.*.nupkg" --source ${{ env.NUGET_SOURCE_NAME }} --api-key ${{ secrets.GITHUB_TOKEN }}
63+ - name : Pack Project
64+ run : dotnet pack Fitnet.Contracts.IntegrationEvents/Fitnet.Contracts.IntegrationEvents.csproj -c Release
65+ - name : Publish Packages
66+ run : dotnet nuget push "Fitnet.Contracts.IntegrationEvents/bin/Release/EvolutionaryArchitecture.Fitnet.Contracts.IntegrationEvents.*.nupkg" --source ${{ env.NUGET_SOURCE_NAME }} --api-key ${{ secrets.GITHUB_TOKEN }}
0 commit comments