-
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (43 loc) · 1.35 KB
/
ci-build.yml
File metadata and controls
56 lines (43 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI/CD
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
name: Build and Publish
env:
solution-path: './ICGSimpleFileList.sln'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7
with:
useConfigFile: true
# https://github.com/valadas/set-dnn-manifest-versions
- name: Update Versions on DNN Modules
uses: valadas/set-dnn-manifest-versions@v1
with:
version: ${{ steps.gitversion.outputs.majorMinorPatch }}
includeSolutionInfo: true
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore NuGet Packages
run: nuget restore "${{ env.solution-path }}"
- name: Build the solution
run: msbuild "${{ env.solution-path }}" /p:Configuration=Release;
- name: Store Install Package
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v2
with:
name: installers
path: '**/**_install.zip'
retention-days: 5 # only need long enough to test/validate