Skip to content

v0.1.0

v0.1.0 #4

Workflow file for this run

name: Release Package
on:
release:
types:
- published
jobs:
pack:
environment: nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8'
- name: Nuget Push
env:
nuget_key: ${{ secrets.NUGETAPIKEY }}
run: |
Version=${GITHUB_REF:10}
dotnet build -c Release
dotnet pack Cnblogs.DashScope.Sdk.sln -p:Version="${Version:1}" -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --include-source --property:PackageOutputPath=../../output
dotnet nuget push ./output/*.* -s https://api.nuget.org/v3/index.json -k $nuget_key --skip-duplicate