Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
milchchan authored Dec 11, 2023
1 parent d1e5057 commit a3d5359
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build Apricot/Apricot.csproj --no-restore --configuration Release
# - name: Test
# run: dotnet test Apricot/Apricot.csproj --no-build --verbosity normal
- name: Publish
run: dotnet publish Apricot/Apricot.csproj --configuration Release --framework net6.0-windows10.0.17763.0 --output Apricot/bin/Release/net6.0-windows10.0.17763.0/win10-x64/publish/ --runtime win10-x64 --self-contained true
run: dotnet publish Apricot/Apricot.csproj --configuration Release --framework net8.0-windows10.0.17763.0 --output Apricot/bin/Release/net8.0-windows10.0.17763.0/win10-x64/publish/ --runtime win10-x64 --self-contained true
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Apricot-win-x64
path: Apricot/bin/Release/net6.0-windows10.0.17763.0/win10-x64/publish/
path: Apricot/bin/Release/net8.0-windows10.0.17763.0/win10-x64/publish/
retention-days: 30

0 comments on commit a3d5359

Please sign in to comment.