Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
Returning an artifact
  • Loading branch information
Edrisym authored Aug 26, 2024
1 parent 7fd3923 commit ce04149
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: .NET

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

jobs:
build:
Expand All @@ -17,12 +17,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Test
run: dotnet test --no-build --verbosity normal

- name: Publish Artifact
run: dotnet publish -c Release -o ./output

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: published-app
path: ./output

0 comments on commit ce04149

Please sign in to comment.