Skip to content

Commit 34ff96a

Browse files
committed
Merge branch 'release/4.0.0'
2 parents fd9ae7b + 05ec99c commit 34ff96a

File tree

193 files changed

+5247
-2814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+5247
-2814
lines changed

.config/dotnet-tools.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"gitversion.tool": {
6+
"version": "5.12.0",
7+
"commands": [
8+
"dotnet-gitversion"
9+
]
10+
},
11+
"dotnet-ef": {
12+
"version": "8.0.11",
13+
"commands": [
14+
"dotnet-ef"
15+
]
16+
},
17+
"paket": {
18+
"version": "8.0.3",
19+
"commands": [
20+
"paket"
21+
]
22+
},
23+
"dotnet-deb": {
24+
"version": "0.1.226",
25+
"commands": [
26+
"dotnet-deb"
27+
]
28+
}
29+
}
30+
}

.github/workflows/dotnet.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
tags: [ "v*" ]
10+
pull_request:
11+
branches: [ "develop" ]
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 8.0.x
27+
28+
- name: Restore tools
29+
run: dotnet tool restore
30+
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
34+
- name: Build
35+
run: |
36+
if [[ $GITHUB_REF == refs/tags/* ]]; then
37+
DEB_SECTION=main
38+
else
39+
DEB_SECTION=testing
40+
fi
41+
dotnet msbuild HamnetMonitoringService/HamnetMonitoringService.csproj -t:CreateDeb -p:TargetFramework=net8.0 -p:RuntimeIdentifier=linux-x64 -p:Configuration=Release -p:PackageDir=./ -p:DebSection=$DEB_SECTION
42+
43+
- name: Create Release
44+
if: startsWith(github.ref, 'refs/tags/')
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
files: HamnetMonitoringService/HamnetMonitoringService.*.deb
48+
49+
- name: Upload a Build Artifact
50+
uses: actions/upload-artifact@v4
51+
with:
52+
# Name of the artifact to upload.
53+
# Optional. Default is 'artifact'
54+
name: Debian Package
55+
56+
# A file, directory or wildcard pattern that describes what to upload
57+
# Required.
58+
path: HamnetMonitoringService/HamnetMonitoringService.*.deb
59+
60+
# The desired behavior if no files are found using the provided path.
61+
# Available Options:
62+
# warn: Output a warning but do not fail the action
63+
# error: Fail the action with an error message
64+
# ignore: Do not output any warnings or errors, the action does not fail
65+
# Optional. Default is 'warn'
66+
if-no-files-found: error
67+
68+
# Duration after which artifact will expire in days. 0 means using default retention.
69+
# Minimum 1 day.
70+
# Maximum 90 days unless changed from the repository settings page.
71+
# Optional. Defaults to repository settings.
72+
retention-days: 0
73+
74+
# The level of compression for Zlib to be applied to the artifact archive.
75+
# The value can range from 0 to 9.
76+
# For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
77+
# Optional. Default is '6'
78+
compression-level: 0
79+
80+
# If true, an artifact with a matching name will be deleted before a new one is uploaded.
81+
# If false, the action will fail if an artifact for the given name already exists.
82+
# Does not fail if the artifact does not exist.
83+
# Optional. Default is 'false'
84+
overwrite: true
85+
86+
# Whether to include hidden files in the provided path in the artifact
87+
# The file contents of any hidden files in the path should be validated before
88+
# enabled this to avoid uploading sensitive information.
89+
# Optional. Default is 'false'
90+
include-hidden-files: false

.github/workflows/dotnetcore.yml

-32
This file was deleted.

0 commit comments

Comments
 (0)