Skip to content

Commit 176e135

Browse files
remove FAKE; add simpler version-bumping system (#7600)
* remove FAKE; add simpler version-bumping system * update nightly and windows release scripts
1 parent f830c40 commit 176e135

File tree

8 files changed

+117
-792
lines changed

8 files changed

+117
-792
lines changed

build-system/nightly-builds.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ variables:
2020

2121
steps:
2222
- task: UseDotNet@2
23-
displayName: 'Use .NET 8 SDK 8.0.402'
23+
displayName: 'Use .NET SDK from global.json'
2424
inputs:
25-
version: 8.0.402
26-
- task: BatchScript@1
27-
displayName: 'FAKE Build'
28-
inputs:
29-
filename: build.cmd
30-
arguments: 'Nuget nugetprerelease=dev nugetpublishurl=$(nightlyUrl) nugetkey=$(nightlyKey)'
25+
useGlobalJson: true
26+
27+
- powershell: ./build.ps1
28+
displayName: 'Update Release Notes'
29+
30+
# Pack with version suffix for nightly builds
31+
- powershell: |
32+
$timestamp = Get-Date -Format "yyyyMMddHHmmss"
33+
dotnet pack -c Release -p:VersionSuffix=beta$timestamp -o $(Build.ArtifactStagingDirectory)/nuget
34+
displayName: 'Create packages'
35+
36+
- script: dotnet nuget push "$(Build.ArtifactStagingDirectory)\nuget\*.nupkg" --api-key $(nightlyKey) --source $(nightlyUrl) --skip-duplicate
37+
displayName: 'Publish to Nightly Feed'

build-system/windows-release.yaml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,26 @@ variables:
2323
value: akkadotnet/akka.net
2424
steps:
2525
- task: UseDotNet@2
26-
displayName: 'Use .NET 8 SDK 8.0.402'
27-
inputs:
28-
version: 8.0.402
29-
- task: BatchScript@1
30-
displayName: 'FAKE Build'
31-
inputs:
32-
filename: build.cmd
33-
arguments: 'nuget nugetpublishurl=https://api.nuget.org/v3/index.json nugetkey=$(nugetKey)'
26+
displayName: 'Use .NET SDK from global.json'
27+
inputs:
28+
useGlobalJson: true
29+
30+
- powershell: ./build.ps1
31+
displayName: 'Update Release Notes'
3432

35-
- task: GitHubRelease@0
36-
displayName: 'GitHub release (create)'
37-
inputs:
38-
gitHubConnection: $(githubConnectionName)
39-
repositoryName: $(githubRepositoryName)
40-
title: '$(projectName) v$(Build.SourceBranchName)'
41-
releaseNotesFile: 'RELEASE_NOTES.md'
42-
assets: |
43-
bin\nuget\*.nupkg
33+
# Pack without version suffix for release
34+
- script: dotnet pack -c Release -o $(Build.ArtifactStagingDirectory)/nuget
35+
displayName: 'Create packages'
36+
37+
- script: dotnet nuget push "$(Build.ArtifactStagingDirectory)\nuget\*.nupkg" --api-key $(nugetKey) --source https://api.nuget.org/v3/index.json --skip-duplicate
38+
displayName: 'Publish to NuGet.org'
39+
40+
- task: GitHubRelease@0
41+
displayName: 'GitHub release (create)'
42+
inputs:
43+
gitHubConnection: $(githubConnectionName)
44+
repositoryName: $(githubRepositoryName)
45+
title: '$(projectName) v$(Build.SourceBranchName)'
46+
releaseNotesFile: 'RELEASE_NOTES.md'
47+
assets: |
48+
$(Build.ArtifactStagingDirectory)/nuget/*.nupkg

build.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)