Skip to content

Commit 6458817

Browse files
committed
Added github yaml workflow file
1 parent 291aefb commit 6458817

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/auto-deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
uses: xom9ikk/[email protected]
25+
- name: Setup MSBuild
26+
uses: microsoft/[email protected]
27+
- name: Setup NuGet
28+
uses: NuGet/[email protected]
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+
uses: frabert/[email protected]
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 }}"

0 commit comments

Comments
 (0)