Skip to content

Commit b4efb84

Browse files
authored
fix release workflow
1 parent 617e6dd commit b4efb84

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
run: dotnet restore
2222

2323
- name: Build
24-
run: dotnet build --configuration $config --no-restore
24+
run: dotnet build --configuration ${config} --no-restore
2525

2626
- name: Test
27-
run: dotnet test PortaCapena.OdooJsonRpcClient.Tests/PortaCapena.OdooJsonRpcClient.Tests.csproj --configuration $config --no-restore --no-build
27+
run: dotnet test PortaCapena.OdooJsonRpcClient.Tests/PortaCapena.OdooJsonRpcClient.Tests.csproj --configuration ${config} --no-restore --no-build
2828

2929
- name: Create Nuget Package
30-
run: dotnet pack --configuration $config /p:Version=${{github.event.release.tag_name}} /p:PackageReleaseNotes="See https://github.com/patricoos/PortaCapena.OdooJsonRpcClient/releases/tag/${{github.event.release.tag_name}}"
30+
run: dotnet pack --configuration ${config} /p:Version=${{github.event.release.tag_name}} /p:PackageReleaseNotes="See https://github.com/patricoos/PortaCapena.OdooJsonRpcClient/releases/tag/${{github.event.release.tag_name}}"
3131
working-directory: ./PortaCapena.OdooJsonRpcClient
3232

3333
- name: Archive Nuget Package
3434
uses: actions/upload-artifact@v1
3535
with:
3636
name: PortaCapena.OdooJsonRpcClient.${{github.event.release.tag_name}}.nupkg
37-
path: ./PortaCapena.OdooJsonRpcClient/bin/$config/PortaCapena.OdooJsonRpcClient.${{github.event.release.tag_name}}.nupkg
37+
path: ./PortaCapena.OdooJsonRpcClient/bin/${config}/PortaCapena.OdooJsonRpcClient.${{github.event.release.tag_name}}.nupkg
3838

3939
- name: Publish NuGet Package
4040
run: dotnet nuget push **/PortaCapena.OdooJsonRpcClient.${{github.event.release.tag_name}}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --no-symbols true

0 commit comments

Comments
 (0)