ci: 修改dotnet版本 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nuget | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
Push-Nuget: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dotnet 7.x | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.304 | |
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.sln | |
- name: Pack | |
run: dotnet pack aspnet-core/Lion.AbpPro.sln --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 |