Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 13: mapping key "uses" already defined at line 12 line 18: mapping key "uses" already defined at line 12 line 18: mapping key "uses" already defined at line 13 line 19: mapping key "with" already defined at line 14 line 17: mapping key "run" already defined at line 16
2023-11-21 16:41:39 +01:00

22 lines
501 B
YAML

name: First CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps:
uses: actions/checkout@v4
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
run: dotnet restore
run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.rid }}-artifacts
path: app