Update release.yaml #2
This file contains 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: release | |
# trigger on a push to any release/* branch | |
on: | |
push: | |
branches: | |
- 'release/*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '9.0' | |
include-prerelease: True | |
- name: Install .NET workloads | |
run: dotnet workload restore | |
- name: Build | |
run: dotnet build Source\csla.build.sln | |
- name: Push NuGet packages | |
run: dotnet nuget push bin\packages\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} |