generated from Distance-Modding/Template.CSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.24 KB
/
auto-deploy.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
45
46
name: Build and Release
on:
push:
branches:
- main
paths-ignore:
- "*.md"
pull_request:
branches:
- main
paths-ignore:
- "*.md"
workflow_dispatch:
jobs:
build:
name: Build and Publish GitHub Release
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: DotEnv
uses: xom9ikk/[email protected]
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore Solution Packages
run: nuget restore $env:SOLUTION
- name: Build Solution
run: msbuild $env:SOLUTION -m
- name: Format Artifact List
id: artifacts
uses: frabert/[email protected]
with:
string: ${{ env.ARTIFACTS }}
pattern: ';'
replace-with: '\n'
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: "Workflow-Automated Deployment [#${{ github.run_number }}]"
tag_name: release-workflow-${{ github.run_number }}
body: "${{ env.RELEASE_BODY }}"
files: "${{ steps.artifacts.outputs.replaced }}"