diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 8f3de16..cb537df 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet-version }}
- uses: actions/setup-dotnet@v3
+ uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
@@ -22,9 +22,9 @@ jobs:
- name: Build
run: dotnet build
- name: Publish
- run: dotnet publish -c Release -o ${{ github.workspace }}/publish
+ run: dotnet publish -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true
- name: Archive
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v4
with:
name: publish
path: ${{ github.workspace }}/publish
\ No newline at end of file
diff --git a/ConsoleApp2/OwlCM160_MQTT.csproj b/ConsoleApp2/OwlCM160_MQTT.csproj
index 9326785..a7ce22d 100644
--- a/ConsoleApp2/OwlCM160_MQTT.csproj
+++ b/ConsoleApp2/OwlCM160_MQTT.csproj
@@ -7,6 +7,7 @@
enable
7.0
+ publish