Workflow config file is invalid. Please check your config file: yaml: line 10: did not find expected '-' indicator
2023-11-21 18:53:50 +01:00

23 lines
568 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
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.rid }}-artifacts
path: artifacts/