Try use built in dotnet docker support for building an image. #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- '**' # matches every branch | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup .net core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.*' | |
dotnet-quality: 'preview' | |
- name: build | |
run: dotnet build | |
working-directory: . |