Skip to content

Adds a yml file to publish the container to Github Packages #3

Adds a yml file to publish the container to Github Packages

Adds a yml file to publish the container to Github Packages #3

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Umbraco build
on:
push:
branches: [ "main", "stage", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: './ContainerRegistryTest'
steps:
- name: checkout source
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ${{env.working-directory}}
run: dotnet restore
- name: Build
working-directory: ${{env.working-directory}}
run: dotnet build --no-restore
- name: Test
working-directory: ${{env.working-directory}}
run: dotnet test --no-build --verbosity normal