-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |