Skip to content

1.22.0 ("1.22D")

1.22.0 ("1.22D") #39

Workflow file for this run

name: Pack and publish nuget
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: NuGet/[email protected]
- name: Pack nuget
run: nuget pack package -OutputFileNamesWithoutVersion -OutputDirectory build -Properties "git=https://github.com/${{ github.repository }}.git;name=${{ github.event.repository.name }};author=${{ github.repository_owner }};description=${{ github.event.repository.description }}"
- name: Publish nuget
run: |
nuget push "build/${{ github.event.repository.name }}.nupkg" -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json