Build and Upload Leaf #21
Workflow file for this run
This file contains hidden or 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: Build and Upload Leaf | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v4 | |
| - name: setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: build project | |
| run: dotnet build -c Release | |
| - name: create nuget package | |
| run: dotnet pack Leaf -c Release --output nuget | |
| - name: upload nuget package artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: nuget/* | |
| - name: publish to nuget | |
| run: dotnet nuget push nuget/* --api-key ${{secrets.APIKEY}} --source https://api.nuget.org/v3/index.json |