Skip to content

Multi .NET

Multi .NET #34

Workflow file for this run

name: CI
on: [push, pull_request]
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
dotnet-version: '6.0.x'

Check failure on line 20 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 20, Col: 9): 'dotnet-version' is already defined .github/workflows/ci.yml (Line: 21, Col: 9): 'dotnet-version' is already defined
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'
- name: Build
run: ./build.sh
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
dotnet-version: '6.0.x'
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'
- name: Build
run: |
if ($env:GITHUB_REF -eq "refs/heads/main") {
.\build.ps1 -Target Publish
} elseif ($env:GITHUB_REF -eq "refs/heads/devel") {
.\build.ps1 -Target PrePublish
} else {
.\build.ps1
}