Skip to content

Update CICD Pipeline.yml #10

Update CICD Pipeline.yml

Update CICD Pipeline.yml #10

Workflow file for this run

name: CI/CD Workflow
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: List workspace contents
run: Get-ChildItem -Path $GITHUB_WORKSPACE
- name: Check Software directory exists
run: Test-Path $GITHUB_WORKSPACE\\Software
- name: Navigate to Workspace
run: Set-Location -Path $GITHUB_WORKSPACE\\Software
- name: Restore NuGet Package
run: nuget restore
- name: Build a solution
run: msbuild PresentationLayer.sln /p:platform="Any CPU" /p:configuration="Release"
- name: Run Unit tests
run: dotnet test --configuration Release --filter Importers.UnitTests
- name: Run Integration tests
run: dotnet test --configuration Release --filter Importers.IntegrationTests
- name: Navigate to startup project
run: cd PresentationLayer
- name: Create a setup
run: msbuild /t:Publish /p:Configuration=Release /p:PublishDir=publish/
- name: Create zip archive
uses: TheDoctor0/[email protected]
with:
type: 'zip'
filename: 'setup.zip'
path: Software/publish/
- name: Create a release
uses: marvinpinto/[email protected]
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
prerelease: false
files: setup.zip
- name: Publish applications
run: msbuild /t:publish /p:configuration=Release /p:PublishDir=publish/
- name: Upload artifact
uses: actions/[email protected]
with:
name: TKPPProjectSetup
path: PresentationLayer/publish/