Skip to content

Commit

Permalink
Updated build to use 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jakenuts committed Jan 1, 2024
1 parent 36c2ea8 commit 4239ca5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/github-actions-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
name: Build and Publish

on: [push]
# push:
# branches: [ $default-branch ]
# pull_request:
# branches: [ $default-branch ]
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand All @@ -19,14 +19,14 @@ jobs:
working-directory: src/
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Avoid shallow clone for Nerdbank.GitVersioning
fetch-depth: 0
fetch-depth: 0 # Avoid shallow clone for Nerdbank.GitVersioning
filter: tree:0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

# Install Nerdbank.GitVersioning
- name: Nerdback.GitVersion
Expand All @@ -37,7 +37,7 @@ jobs:
setCommonVars: true

- name: Restore dependencies
run: dotnet restore
run: dotnet restore --no-cache

- name: Build
run: dotnet build --configuration Release --no-restore -p:Version=${{ steps.nbgv.outputs.SemVer2 }}
Expand Down
1 change: 1 addition & 0 deletions src/DotnetDevops.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7B86BF8D-3839-498B-8AF1-E3E8434C14FC}"
ProjectSection(SolutionItems) = preProject
..\.gitignore = ..\.gitignore
..\.github\workflows\github-actions-dotnet.yml = ..\.github\workflows\github-actions-dotnet.yml
..\internal-build-and-publish.cmd = ..\internal-build-and-publish.cmd
..\README.md = ..\README.md
EndProjectSection
Expand Down

0 comments on commit 4239ca5

Please sign in to comment.