-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (39 loc) · 1.27 KB
/
build_release.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
name: build_release
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore Source/Source.sln
- name: Build
run: dotnet build Source/Source.sln --no-restore --configuration Release
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)
- name: Upload Build
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'Sn1p3rr3c0n'
git config --global user.email '[email protected]'
git commit -am "Updated dll"
git push
- name: Get XML Version
id: get_mv
uses: mavrosxristoforos/[email protected]
with:
xml-file: 'About/Manifest.xml'
xpath: '//version'
- uses: ncipollo/release-action@v1
with:
#bodyFile: "body.md"
#body: "some manual content"
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: v${{ steps.get_mv.outputs.info }}