Skip to content

Merge pull request #37 from IowaComputerGurus/Features/UpdateGitVersi… #43

Merge pull request #37 from IowaComputerGurus/Features/UpdateGitVersi…

Merge pull request #37 from IowaComputerGurus/Features/UpdateGitVersi… #43

Workflow file for this run

name: CI Build
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Validate Build
env:
solution-path: './src/NetCore Utilities Email.sln'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure .NET Installed
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- name: Restore Packages
run: dotnet restore "${{ env.solution-path }}"
- name: Build
run: dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }}