Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release yaml script #384

Merged
merged 3 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions build-system/windows-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ variables:
value: Akka.Persistence.Sql
- name: githubRepositoryName
value: akkadotnet/Akka.Persistence.Sql
- name: buildConfiguration
value: 'Release'

steps:
- task: UseDotNet@2
Expand All @@ -34,21 +36,17 @@ steps:
displayName: NuGet Pack
inputs:
command: 'pack'
arguments: '-c Release'
arguments: '-c $(buildConfiguration) -o ./bin/nuget'
includeSymbols: true
packDirectory: |
.\bin\nuget
continueOnError: false

- task: DotNetCoreCLI@2
displayName: NuGet Push
inputs:
command: 'push'
nugetFeedType: 'external'
externalEndPoint: 'https://api.nuget.org/v3/index.json'
publishFeedCredentials: $(nugetKey)
packagesToPush: |
.\bin\nuget\*.nupkg
# PowerShell script to push all NuGet packages to NuGet.org
- powershell: |
$ErrorActionPreference = "Stop" # Makes the script stop on errors
Get-ChildItem "bin\nuget\*.nupkg" -Recurse | ForEach-Object {
dotnet nuget push $_.FullName --api-key $(nugetKey) --source https://api.nuget.org/v3/index.json
}
displayName: 'Push to NuGet.org'
continueOnError: false

- task: GitHubRelease@0
Expand Down