Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Action to generate build artifact #381

Merged
merged 8 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/dotnet.yml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/upload-artifact@v3 will be deprecated on November 30th. v4 has breaking changes in syntax:

https://github.com/actions/upload-artifact?tab=readme-ov-file#breaking-changes

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: windows-latest

steps:
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand All @@ -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
24 changes: 0 additions & 24 deletions KenticoInspector.DesktopApplication/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions KenticoInspector.DesktopApplication/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions KenticoInspector.DesktopApplication/index.html

This file was deleted.

78 changes: 0 additions & 78 deletions KenticoInspector.DesktopApplication/main.js

This file was deleted.

Loading
Loading