From bd22f09185162b83b61d2cc06a3ae9d2d45b8e22 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Thu, 23 Mar 2023 01:28:55 +0800 Subject: [PATCH] Upgrade to ABP 7.1.0 --- .github/workflows/publish.yml | 41 ++++++++++++++++++----------------- Directory.Build.props | 2 +- common.props | 2 +- 3 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9bcba1e..9d22ef9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: - main jobs: publish: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: NuGet/setup-nuget@v1 @@ -33,41 +33,42 @@ jobs: - name: dotnet build run: dotnet build -c Release - + - name: dotnet test run: dotnet test -c Release --no-restore --no-build - name: dotnet pack - run: dotnet pack -c Release --no-build -o dest + run: dotnet pack -c Release --no-build --property PackageOutputPath=${{ github.workspace }}/nugetPackages/ - name: remove unused packages run: | - cd dest - del * -Exclude EasyAbp.* - del * -Exclude *.${{ steps.getVersion.outputs.first_match }}.nupkg - del *.Blazor.Host.* - del *.Blazor.Server.Host.* - del *.Host.Shared.* - del *.HttpApi.Host.* - del *.IdentityServer.* - del *.AuthServer.* - del *.Web.Host.* - del *.Web.Unified.* - del *.HttpApi.Client.ConsoleTestApp.* - del *.Tests.* - del *.TestBase.* - dir -name + cd ${{ github.workspace }}/nugetPackages + shopt -s extglob + rm -f !(EasyAbp.*) + rm -f !(*.${{ steps.getVersion.outputs.first_match }}.nupkg) + rm -f *.Blazor.Host.* + rm -f *.Blazor.Server.Host.* + rm -f *.Host.Shared.* + rm -f *.HttpApi.Host.* + rm -f *.IdentityServer.* + rm -f *.AuthServer.* + rm -f *.Web.Host.* + rm -f *.Web.Unified.* + rm -f *.HttpApi.Client.ConsoleTestApp.* + rm -f *.Tests.* + rm -f *.TestBase.* + ls - name: dotnet nuget push to GitHub uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1 with: - nupkg-path: 'dest\*.nupkg' + nupkg-path: '${{ github.workspace }}/nugetPackages/*.nupkg' repo-owner: 'EasyAbp' gh-user: 'EasyAbp' token: ${{ secrets.GITHUB_TOKEN }} - name: dotnet nuget push to NuGet - run: dotnet nuget push dest\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + run: dotnet nuget push ${{ github.workspace }}/nugetPackages/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: determine if the tag exists uses: mukunku/tag-exists-action@v1.0.0 diff --git a/Directory.Build.props b/Directory.Build.props index 6028f1b..b09fafe 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 7.0.0 + 7.1.0 diff --git a/common.props b/common.props index 70f1939..9fbe7dd 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 1.2.0 + 1.3.0 $(NoWarn);CS1591 true EasyAbp Team