Skip to content

Commit d230099

Browse files
Merge pull request #52 from IowaComputerGurus/feature/ci
Added new build
2 parents b048668 + c8d75fb commit d230099

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/ci-build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI Build
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: Build and Publish
14+
env:
15+
solution-path: './src/ICG AspnetCore Utilities.sln'
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Ensure .NET Installed
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: 5.0.x
25+
26+
- name: Install GitVersion
27+
run: dotnet tool install --global GitVersion.Tool
28+
29+
- name: Determine Version
30+
id: gitversion
31+
uses: gittools/actions/gitversion/[email protected]
32+
with:
33+
useConfigFile: true
34+
35+
- name: Restore Packages
36+
run: dotnet restore "${{ env.solution-path }}"
37+
- name: Build
38+
run: dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }}
39+
- name: Test
40+
run: dotnet test "${{ env.solution-path }}" --no-build --configuration Release

GitVersion.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
mode: ContinuousDeployment
2+
next-version: 5.2.0
3+
branches:
4+
develop:
5+
regex: develop
6+
tag: 'alpha'
7+
increment: Patch
8+
source-branches: []
9+
pull-request:
10+
regex: (pull|pull\-requests|pr)[/-]
11+
tag: 'pr'
12+
tag-number-pattern: '[/-](?<number>\d+)[-/]'
13+
increment: Patch
14+
prevent-increment-of-merged-branch-version: false
15+
is-release-branch: false
16+
source-branches: []
17+
ignore:
18+
sha: []
19+
merge-message-formats: {}

0 commit comments

Comments
 (0)