Skip to content

FreeDesktop: fix duration and body height. (#25) #82

FreeDesktop: fix duration and body height. (#25)

FreeDesktop: fix duration and body height. (#25) #82

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
NuGetDirectory: ${{ github.workspace}}/nuget
defaults:
run:
shell: pwsh
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore /warnaserror
- name: Test
run: dotnet test --no-build --verbosity normal
publish_nuget:
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} -p:GeneratePackageOnBuild=false /p:PackageVersion=${{github.ref_name}}
- uses: actions/upload-artifact@v3
with:
name: nuget
if-no-files-found: error
retention-days: 7
path: ${{ env.NuGetDirectory }}/*.nupkg