Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: .NET Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish MLDAS.Web/MLDAS.csrpoj -r linux-x64 /t:PublishContainer -c Release