File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 uses : devcontainers/ci@v0.3
2121 with :
2222 runCmd : |
23- dotnet cake --target Pack-DotNetTool
23+ dotnet cake --target Pack-DotNetTool --version ${{ inputs.version }}
2424
2525 - name : Publish to NuGet (optional)
26- if : startsWith(github.ref, 'refs/tags/')
2726 run : dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Release
33on :
44 workflow_dispatch : {}
55
6+ permissions :
7+ contents : write
8+
9+
610jobs :
711 get-version :
812 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11var target = Argument ( "target" , "Build" ) ;
22var configuration = Argument ( "configuration" , "Release" ) ;
3+ var version = Argument ( "package-version" , "0.1.0" ) ; // default version if none is passed
34
45var srcDirectory = "./src" ;
56var consoleCsproj = $ "{ srcDirectory } /BuslyCLI.Console/BuslyCLI.Console.csproj";
@@ -74,6 +75,10 @@ Task("Pack-DotNetTool")
7475 {
7576 Configuration = configuration ,
7677 OutputDirectory = "./artifacts/nupkgs" ,
78+ MSBuildSettings = new DotNetMSBuildSettings
79+ {
80+ Version = version ,
81+ } ,
7782 } ) ;
7883} ) ;
7984
You can’t perform that action at this time.
0 commit comments