Skip to content

Commit

Permalink
Fix Deployment
Browse files Browse the repository at this point in the history
- fix build command
- add push to main branch release
  • Loading branch information
aboo committed Dec 23, 2024
1 parent 17e9d6e commit 4e53a6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Pull Request CI
on:
push:
branches:
- master
tags:
- v*
jobs:
Expand Down Expand Up @@ -37,6 +39,7 @@ jobs:
with:
dotnet-version: '6.0.x'
- name: Build Nuget Package
run: dotnet pack -c Release azure-documentdb-odata-sql\azure-documentdb-odata-sql.csproj -o . -c azure-documentdb-odata-sql\azure-documentdb-odata-sql.nuspec /p:Version=${{needs.versioning.outputs.version}} /p:PackageID=Lambda.Azure.CosmosDb.OData.Sql
run: dotnet pack -c Release azure-documentdb-odata-sql\azure-documentdb-odata-sql.csproj -o . /p:NuspecFile=azure-documentdb-odata-sql.nuspec /p:Version=${{needs.versioning.outputs.version}} /p:PackageID=Lambda.Azure.CosmosDb.OData.Sql
- name: Push NuGet Package
run: dotnet nuget push Lambda.Azure.CosmosDb.OData.Sql.${{needs.versioning.outputs.version}}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 comments on commit 4e53a6e

Please sign in to comment.