-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from kentico-ericd/build/upload-artifact
Use Action to generate build artifact
- Loading branch information
Showing
15 changed files
with
472 additions
and
3,664 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 |
---|---|---|
|
@@ -17,6 +17,8 @@ jobs: | |
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
|
@@ -34,3 +36,15 @@ jobs: | |
run: dotnet build --no-restore | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
- name: Publish client application | ||
run: | | ||
cd .\KenticoInspector.WebApplication | ||
dotnet publish KenticoInspector.WebApplication.csproj /p:PublishDir=..\publish -c Release -r win-x64 --self-contained true | ||
mkdir "..\publish\ClientApp\dist" | ||
cd .\ClientApp | ||
Copy-Item ".\dist\*" -Recurse -Destination "..\..\publish\ClientApp\dist\" | ||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: KInspector | ||
path: .\publish |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.