File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2222 - name : Install dependencies
2323 run : dotnet restore --force
2424
25+ - name : Compute Scalar Version
26+ run : |
27+ BRANCH=$(git branch --show-current)
28+ if [ "${BRANCH:0:9" = "releases/" ]; then
29+ VERSION="${BRANCH:9}".0
30+ else
31+ VERSION=0.3.132.0
32+ fi
33+ export VERSION
34+
2535 - name : Build Linux packages
26- run : dotnet publish -c Release 'Scalar.Packaging.Linux/Scalar.Packaging.Linux.csproj'
36+ run : dotnet publish -c Release -p:ScalarVersion=$VERSION 'Scalar.Packaging.Linux/Scalar.Packaging.Linux.csproj'
2737
2838 # Because the actions/upload-artifact action does not allow you to specify
2939 # relative file paths we must first use a shell script to copy the
Original file line number Diff line number Diff line change 2020 Targets =" Publish"
2121 Properties ="
2222 Configuration=$(Configuration);
23+ ScalarVersion=$(ScalarVersion);
2324 RuntimeIdentifier=$(RuntimeIdentifier);"
2425 BuildInParallel =" true" />
2526
You can’t perform that action at this time.
0 commit comments