Skip to content

1.8.1

1.8.1 #20

Workflow file for this run

name: Release Package
on:
release:
types:
- published
jobs:
pack:
environment: nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: NuGet/[email protected]
with:
nuget-api-key: ${{ secrets.NUGETAPIKEY }}
- name: Nuget Push
run: |
Version=${GITHUB_REF:10}
sed -i "s/\(<RuleSetVersion>\)[^<]*\(<\/RuleSetVersion>\)/\1$Version\2/" ./src/build/Cnblogs.CodeQuality.props
nuget pack ./src/Cnblogs.CodeQuality.nuspec -Version "$Version"
nuget push ./Cnblogs.CodeQuality.$Version.nupkg -NonInteractive -Source https://api.nuget.org/v3/index.json