Skip to content

Commit

Permalink
Add publish step to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishotta committed Jun 2, 2024
1 parent f35d879 commit cbf1c36
Showing 1 changed file with 34 additions and 23 deletions.
57 changes: 34 additions & 23 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,39 @@
name: .NET

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
DOTNET_VERSION: 8.x

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ./src/Evently
run: dotnet restore "Evently.sln"
- name: Build
working-directory: ./src/Evently
run: dotnet build --no-restore "Evently.sln"
- name: Test
working-directory: ./src/Evently
run: dotnet test --no-build --verbosity normal "Evently.sln"
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore dependencies
working-directory: ./src/Evently
run: dotnet restore Evently.sln

- name: Build
working-directory: ./src/Evently
run: dotnet build Evently.sln --configuration Release --no-restore

- name: Test
working-directory: ./src/Evently
run: dotnet test Evently.sln --configuration Release --no-restore --no-build

- name: Publish
working-directory: ./src/Evently
run: dotnet publish Evently.sln --configuration Release --no-restore --no-build

0 comments on commit cbf1c36

Please sign in to comment.