File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 branches : [master, develop]
77 pull_request :
88 branches : [master, develop]
9+ release :
910
1011defaults :
1112 run :
1213 shell : pwsh
1314
15+ env :
16+ VERSION_SUFFIX : alpha-${{ github.run_number }}
17+
1418jobs :
1519 build :
1620 strategy :
2125 runs-on : windows-latest
2226
2327 steps :
28+ - name : Set VERSION_SUFFIX
29+ if : github.event_name == 'release' && github.event.action == 'created'
30+ run : " 'VERSION_SUFFIX=' >> $env:GITHUB_ENV"
31+
2432 - name : Checkout
2533 uses : actions/checkout@v3.1.0
2634
5462 run : nuget restore
5563
5664 - name : Build and package the application
57- run : msbuild PolyDeploy.sln /m /p:Configuration=$env:Configuration /p:ContinuousIntegrationBuild=true /p:VersionSuffix=alpha- ${{ github.run_number }}
65+ run : msbuild PolyDeploy.sln /m /p:Configuration=$env:Configuration /p:ContinuousIntegrationBuild=true /p:VersionSuffix=${{ env.VERSION_SUFFIX }}
5866 env :
5967 Configuration : ${{ matrix.configuration }}
6068
6573 run : dotnet publish PolyDeploy.DeployClient/PolyDeploy.DeployClient.csproj --configuration ${{ matrix.configuration }} --no-build --output dist/
6674
6775 - name : Pack Deploy Client
68- run : dotnet pack PolyDeploy.DeployClient/PolyDeploy.DeployClient.csproj --configuration ${{ matrix.configuration }} --no-build --output dist/ --version-suffix alpha- ${{ github.run_number }}
76+ run : dotnet pack PolyDeploy.DeployClient/PolyDeploy.DeployClient.csproj --configuration ${{ matrix.configuration }} --no-build --output dist/ --version-suffix ${{ env.VERSION_SUFFIX }}
6977
7078 - name : Upload build artifacts
7179 uses : actions/upload-artifact@v3.1.1
You can’t perform that action at this time.
0 commit comments