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
13 changes: 10 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
- master
env:
APP_NAME: DynamicExpression
VERSION: 10.0.7
VERSION: 10.0.8
NUGET_HOST: https://api.nuget.org/v3/index.json
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
concurrency:
group: ${{ github.repository }}
cancel-in-progress: true
Expand Down Expand Up @@ -43,11 +43,18 @@ jobs:
throw "Pack failed";
};

- name: NuGet Login (Trusted Publishing)
if: github.ref == 'refs/heads/master'
id: nuget-login
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0
with:
user: vivet

- name: Push NuGet
if: github.ref == 'refs/heads/master'
shell: pwsh
run: |
dotnet nuget push "nupkgs/*.nupkg" -s $env:NUGET_HOST -k $env:NUGET_APIKEY --skip-duplicate
dotnet nuget push "nupkgs/*.nupkg" -s $env:NUGET_HOST -k ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --skip-duplicate

if ($LastExitCode -ne 0)
{
Expand Down
3 changes: 1 addition & 2 deletions DynamicExpression/DynamicExpression.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<PackageTags>Lampda, Expression, Linq, Dynamic, Criteria, Query, Paging, Pagination, Sort, Sorting</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>
- Updated NuGets
- Added NotIn expression
- Changed to Trusted publishing for NuGet
</PackageReleaseNotes>
<PackageLicense>https://raw.githubusercontent.com/vivet/DynamicExpression/master/LICENSE</PackageLicense>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
Expand Down
Loading