-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.04 KB
/
Build.yml
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
env:
ModuleName: 'PowerProcess'
Configuration: 'Release'
Framework: 'net6.0'
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- "docs/**"
- "**/*.css"
- "**/*.gif"
- "**/*.html"
- "**/*.ico"
- "**/*.jpg"
- "**/*.md"
- "**/*.png"
- "**/*.txt"
jobs:
build:
name: Build Module
runs-on: windows-latest
steps:
- name: Git Checkout
uses: actions/[email protected]
- name: Setup .NET Core SDK
uses: actions/[email protected]
- name: Build .NET Core project
shell: pwsh
run: |
./Build.ps1 -ModuleName ${{ env.ModuleName }} -Configuration ${{ env.Configuration }} -Framework ${{ env.Framework }}
- name: Upload Build Artifact
uses: actions/[email protected]
with:
name: ${{ env.ModuleName }}
path: ${{ github.workspace }}\${{ env.ModuleName }}\bin\${{ env.Configuration }}\${{ env.Framework }}\${{ env.ModuleName }}
if-no-files-found: error