File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ paths-ignore :
7
+ - " *.md"
8
+ pull_request :
9
+ branches :
10
+ - main
11
+ paths-ignore :
12
+ - " *.md"
13
+ workflow_dispatch :
14
+ jobs :
15
+ build :
16
+ name : Build and Publish GitHub Release
17
+ runs-on : windows-latest
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v2
21
+ with :
22
+ submodules : recursive
23
+ - name : DotEnv
24
+
25
+ - name : Setup MSBuild
26
+
27
+ - name : Setup NuGet
28
+
29
+ - name : Restore Solution Packages
30
+ run : nuget restore $env:SOLUTION
31
+ - name : Build Solution
32
+ run : msbuild $env:SOLUTION -m
33
+ - name : Format Artifact List
34
+ id : artifacts
35
+
36
+ with :
37
+ string : ${{ env.ARTIFACTS }}
38
+ pattern : ' ;'
39
+ replace-with : ' \n'
40
+ - name : Create Release
41
+ uses : softprops/action-gh-release@v1
42
+ with :
43
+ name : " Workflow-Automated Deployment [#${{ github.run_number }}]"
44
+ tag_name : release-workflow-${{ github.run_number }}
45
+ body : " ${{ env.RELEASE_BODY }}"
46
+ files : " ${{ steps.artifacts.outputs.replaced }}"
You can’t perform that action at this time.
0 commit comments