Skip to content

fix: fix typos!

fix: fix typos! #3

Workflow file for this run

name: publish
on:
push:
tags: [ 'v*' ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Diagnostic
run: |
dotnet --info
dotnet --list-sdks
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore -p:GeneratePackageOnBuild=false
- name: Pack
run: |
VERSION="${GITHUB_REF_NAME#v}"
dotnet pack -c Release --no-build -o ./nupkgs /p:PackageVersion="$VERSION"
- name: Push .nupkg to NuGet.org
run: dotnet nuget push "nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Push .snupkg
run: |
shopt -s nullglob
for f in nupkgs/*.snupkg; do
dotnet nuget push "$f" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
done