Skip to content

Commit

Permalink
Add gitversion to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheesebaron committed Oct 30, 2022
1 parent f6815e3 commit 5a35348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ jobs:
- name: Install .NET Workloads
run: dotnet workload install ios maccatalyst

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build Cirrious.FluentLayout/Cirrious.FluentLayouts.Touch.csproj --no-restore
run: dotnet build Cirrious.FluentLayout/Cirrious.FluentLayouts.Touch.csproj --no-restore /p:Version=${{ steps.gitversion.outputs.semVer }} /p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} /p:InformationalVersion=${{ steps.gitversion.outputs.informationalVersion }}

- name: Upload a Build Artifact
uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mode: mainline

0 comments on commit 5a35348

Please sign in to comment.