Skip to content

Commit

Permalink
added build action
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed Apr 1, 2024
1 parent b5ee97b commit 577fff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ 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
- name: Archive
uses: actions/upload-artifact@v2
run: dotnet publish -c Release -p:PublishSingleFile=true
- name: Archive artifact
uses: actions/upload-artifact@v4
with:
name: publish
path: ${{ github.workspace }}/publish
name: publish Windows x64 single executable file
path: ${{ github.workspace }}\ConsoleApp2\publish\net8.0-windows10.0.22621.0\win-x64\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 577fff2

Please sign in to comment.