-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (63 loc) · 2.12 KB
/
Copy pathbuild-release.yml
File metadata and controls
78 lines (63 loc) · 2.12 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build & Release
on:
push:
tags:
- v*
env:
ReleaseFileName: EasyERPMod_${{ github.ref_name }}.zip
jobs:
generate-changelog:
name: Generate changelog
runs-on: ubuntu-22.04
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
config: cliff.toml
args: -vv -l -s all
env:
OUTPUT: CHANGES.md
build:
runs-on: windows-latest
permissions:
contents: write
needs:
- generate-changelog
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore
- name: Build ERPLoader
run: |
dotnet build ERPLoader\ERPLoader.csproj --configuration Release --no-restore
dotnet publish ERPLoader\ERPLoader.csproj /p:PublishProfile=ERPLoader\Properties\PublishProfiles\Release.pubxml
- name: Build EasyERPExplorer
run: |
dotnet build EasyERPExplorer\EasyERPExplorer.csproj --configuration Release --no-restore
dotnet publish EasyERPExplorer\EasyERPExplorer.csproj /p:PublishProfile=EasyERPExplorer\Properties\PublishProfiles\Release.pubxml
- name: Build Updater
run: |
dotnet build Updater\EasyUpdater.csproj --configuration Release --no-restore
dotnet publish Updater\EasyUpdater.csproj /p:PublishProfile=Updater\Properties\PublishProfiles\Release.pubxml
- name: Zip output files
run: Compress-Archive -Path ./Release/* -DestinationPath ./${{ env.ReleaseFileName }}
- name: Create release
uses: softprops/action-gh-release@v1
with:
body: "${{ needs.generate-changelog.outputs.release_body }}"
fail_on_unmatched_files: true
files: ${{ env.ReleaseFileName }}