Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ jobs:
dotnet-version: |
9.x

- name: Set Default VERSION
run: echo "VERSION=0.0.0" >> $GITHUB_ENV

- name: Set VERSION variable from tag
run: echo "VERSION=${{ github.event.release.tag_name}}" >> $GITHUB_ENV
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}

- name: Read VERSION variable
run: echo "${VERSION}"

- name: Restore .NET Packages
run: dotnet restore

- name: Build .NET Solution
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --no-restore /p:Version=${VERSION}

- name: Test .NET Solution
run: dotnet test --configuration Release --no-build --filter="Category=UnitTest|Category=IntegrationTest" --logger "trx;LogFilePrefix=test-results"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ on:
options:
- release
- prerelease
identifier:
type: string
default: rc
description: Pre-Release Identifier
required: false
include-pre-releases:
type: boolean
default: true
description: Include Pre-Releases

concurrency:
group: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref }}
Expand All @@ -36,5 +45,7 @@ jobs:
uses: release-drafter/release-drafter@v6.1.0
with:
prerelease: ${{ github.event.inputs.release-type != 'release' }}
prerelease-identifier: ${{ github.event.inputs.identifier }}
include-pre-releases: ${{ github.event.inputs.include-pre-releases }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="GitVersion.MsBuild" Version="6.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Loading