Skip to content

Commit

Permalink
added build action
Browse files Browse the repository at this point in the history
build script

build script
  • Loading branch information
PBrunot committed Apr 1, 2024
1 parent b5ee97b commit b3ec359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ 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
run: dotnet restore
- 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
1 change: 1 addition & 0 deletions ConsoleApp2/OwlCM160_MQTT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Nullable>enable</Nullable>
<Trimming></Trimming>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
<OutputPath>publish</OutputPath>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit b3ec359

Please sign in to comment.