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.
25 lines
800 B
25 lines
800 B
name: Nuget
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
Push-Nuget:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Dotnet 10.0.0
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 10.0.100
|
|
include-prerelease: True
|
|
- name: Setting Version
|
|
id: vars
|
|
run: echo ::set-output name=tag::${GITHUB_REF:10}
|
|
- name: Build
|
|
run: dotnet build aspnet-core/Lion.AbpPro.slnx
|
|
- name: Pack
|
|
run: dotnet pack aspnet-core/Lion.AbpPro.slnx --include-source --include-symbols /p:Configuration=Release -p:PackageVersion=${GITHUB_REF:10} --output nupkgs
|
|
- name: Push
|
|
run: dotnet nuget push nupkgs/*.symbols.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json
|
|
|