Skip to content

Update dotnet-releaser.toml #4

Update dotnet-releaser.toml

Update dotnet-releaser.toml #4

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: false
fetch-depth: 0
- name: Install .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore ./Source/SVGImage/DotNetProjects.SVGImage.csproj
- name: GitVersion
id: gitversion # step id used as reference for output values
uses: roryprimrose/set-vs-sdk-project-version@v1.0.6
with:
projectFilter: './Source/SVGImage/*.SVGImage.csproj'
version: '5.0.118'
- name: Update project version
uses: roryprimrose/set-vs-sdk-project-version@v1.0.6
with:
projectFilter: './Source/SVGImage/*.SVGImage.csproj'
version: '5.0.118'
# version: ${{ steps.gitversion.outputs.NuGetVersionV2 }}
assemblyVersion: ${{ steps.gitversion.outputs.AssemblySemVer }}
fileVersion: ${{ steps.gitversion.outputs.MajorMinorPatch }}
informationalVersion: ${{ steps.gitversion.outputs.InformationalVersion }}
- name: Build, Test, Pack, Publish
shell: bash
run: |
dotnet tool install -g dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_API_KEY}}" --github-token "${{secrets.GITHUB_TOKEN}}" Source/dotnet-releaser.toml