Skip to content

Commit

Permalink
Upgrade to ABP 7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Mar 23, 2023
1 parent 58838f4 commit 0ec82ec
Show file tree
Hide file tree
Showing 9 changed files with 2,986 additions and 151 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/publish.yml
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>

<AbpVersion>7.0.0</AbpVersion>
<AbpVersion>7.1.0</AbpVersion>

</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion common.props
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.7.0</Version>
<Version>0.8.0</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down

0 comments on commit 0ec82ec

Please sign in to comment.