Skip to content

Commit

Permalink
Dynamic Versioning
Browse files Browse the repository at this point in the history
- amended versioning of the package to be dynamic
  • Loading branch information
aboo committed Dec 23, 2024
1 parent 4e53a6e commit a9f9f9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +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 . /p:NuspecFile=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:NuspecProperties="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

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Lambda.Azure.CosmosDb.OData.Sql</id>
<version>4.2.0</version>
<version>$version$</version>
<authors>Ziyou Zheng, Aboo Azarnoush, Amir Hesami</authors>
<owners>Microsoft Corporation, Aboo Azarnoush</owners>
<projectUrl>https://github.com/aboo/azure-documentdb-odata-sql</projectUrl>
Expand Down

0 comments on commit a9f9f9a

Please sign in to comment.