Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: publish 🚀
on:
workflow_dispatch:
push:
branches:
-main
jobs:
publish:
run-on:ubuntu-latest
steps:
-name:Setup .NET

Check failure on line 12 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
uses:actions/checkout@v3
with:
dotnet-version:"6.0.x"
-name: Restore
run: dotnet restore ./Basic_crud.sln
-name: Build
run: dotnet build ./Basic_crud.sln --configuration Release --no-restore
-name: Publish
run: dotnet publish ./basic_crud.sln --configuration Release --no-build