Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmleite committed Feb 27, 2025
1 parent 1b4d474 commit b7a5c34
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,40 +63,40 @@ jobs:
path: code-coverage-results.md
- name: Write to Job Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
# Workflow jobs
jobs:
Build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main-123694-PortalSDKUnitTestsInPipeline'
steps:
# Run build
- name: Build Windows
if: github.event.pull_request.base.ref == 'main-123694-PortalSDKUnitTestsInPipeline'
- name: Build Windows
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet publish --no-build --no-restore --configuration Release --self-contained --runtime win-x64 Cmf.CustomerPortal.Sdk.sln
- name: Build Linux
if: github.event.pull_request.base.ref == 'main'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet publish --no-build --no-restore --configuration Release --self-contained --runtime linux-x64 Cmf.CustomerPortal.Sdk.sln
# Read version
- name: Read tool version
if: github.event.pull_request.base.ref == 'main'
uses: QwerMike/xpath-action@v1
id: getver
with:
filename: src/Version.props
expression: '/Project/PropertyGroup/Version/text()'
# Archive
- name: Archive Console Win64
if: github.event.pull_request.base.ref == 'main'
uses: actions/upload-artifact@v4
with:
name: Cmf.CustomerPortal.Sdk.Console-${{ steps.getver.outputs.result }}.win-x64
path: src/Console/bin/Release/net8.0/win-x64/publish/
- name: Archive Console Linux64
if: github.event.pull_request.base.ref == 'main'
uses: actions/upload-artifact@v4
with:
name: Cmf.CustomerPortal.Sdk.Console-${{ steps.getver.outputs.result }}.linux-x64
path: src/Console/bin/Release/net8.0/linux-x64/publish/
- name: Archive PowerShell
if: github.event.pull_request.base.ref == 'main'
uses: actions/upload-artifact@v4
with:
name: Cmf.CustomerPortal.Sdk.PowerShell-${{ steps.getver.outputs.result }}
Expand Down

0 comments on commit b7a5c34

Please sign in to comment.