Skip to content

Update dotnet monorepo (#190) #175

Update dotnet monorepo (#190)

Update dotnet monorepo (#190) #175

Workflow file for this run

# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_BuildDeploy --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------
name: BuildDeploy
on:
push:
branches:
- main
env:
configuration: Release
jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
permissions: write-all
environment:
name: release
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET (With cache)
uses: actions/setup-dotnet@v5.2.0
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
dotnet-quality: 'preview'
cache: true
cache-dependency-path: |
**/Directory.Packages.props
**/*.slnx
**/*.csproj
**/global.json
**/nuget.config
- name: NBGV
id: nbgv
uses: dotnet/nbgv@master
with:
setAllVars: true
- run: echo 'SemVer2=${{ steps.nbgv.outputs.SemVer2 }}'
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v3
with:
vs-prerelease: true
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v5
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Run: Compile Pack'
run: ./build.cmd Pack
env:
NuGetApiKey: ${{ secrets.NUGET_API_KEY }}
- name: 'Publish: output'
uses: actions/upload-artifact@v7
with:
name: output
path: output
- name: Changelog
uses: glennawatson/ChangeLog@v1
id: changelog
- name: Create Release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.nbgv.outputs.SemVer2 }}
release_name: ${{ steps.nbgv.outputs.SemVer2 }}
body: |
${{ steps.changelog.outputs.commitLog }}
- name: 'Run: Deploy'
run: ./build.cmd Deploy
env:
NuGetApiKey: ${{ secrets.NUGET_API_KEY }}