Skip to content

Commit

Permalink
Merge pull request #47 from celeron533/github_actions
Browse files Browse the repository at this point in the history
Refine GitHub Actions
  • Loading branch information
celeron533 authored Dec 28, 2023
2 parents 143d371 + aaef8b4 commit 0d7a979
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
paths-ignore:
- 'README.md'
- 'LICENSE'
workflow_dispatch:

jobs:
build:
Expand All @@ -30,20 +31,23 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration ${{ matrix.configuration }} --output bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}
run: dotnet build DicomGrep/DicomGrep.csproj --no-restore --configuration ${{ matrix.configuration }} --output bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}
- name: Test
run: dotnet test --no-restore --verbosity normal

- name: Upload articraft
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: DicomGrep-${{ matrix.configuration }}
path: bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}
path: |
bin/net${{ matrix.dotnet-version }}/${{ matrix.configuration }}
!bin/**/DICOM Dictionary.xml
!bin/**/Private Dictionary.xml

0 comments on commit 0d7a979

Please sign in to comment.