An abp application module group that provides basic e-shop service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.1 KiB

name: publish to nuget
on:
push:
branches:
- master # Default release branch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.200
source-url: https://nuget.pkg.github.com/EasyAbp/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: dotnet build
run: dotnet build -c Release
- name: dotnet pack
run: dotnet pack -c Release --no-build -o dest
- name: remove unused packages
run: |
cd dest
ls | grep -v EasyAbp. | xargs rm -f
ls | grep HttpApi.Client.ConsoleTestApp | xargs rm -f
ls
- name: dotnet nuget push to GitHub
run: dotnet nuget push ./dest/**/*.nupkg --skip-duplicate --no-symbols true
- 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 --no-symbols true