Update dependency Serilog.Enrichers.Thread to v4 #106
Workflow file for this run
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 Nuget | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ dev ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ dev ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
generate_version: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.versionprovider.outputs.version }} | |
steps: | |
# The maximum value for either of the parts is 65534 - https://stackoverflow.com/a/37941296/11649486 | |
- name: Generate version | |
id: versionprovider | |
shell: bash | |
run: | | |
echo "version=$(date -u +%Y.%m.%d.%-H%M)" >> $GITHUB_OUTPUT | |
build_each: | |
runs-on: ubuntu-latest | |
needs: [generate_version] | |
strategy: | |
fail-fast: true | |
matrix: | |
project: | |
- "CoreFramework.Base" | |
- "CoreFramework.Config" | |
- "CoreFramework.Config.Json" | |
- "CoreFramework.Config.Yaml" | |
- "CoreFramework.CrashLogging" | |
- "CoreFramework.Logging" | |
dotnet-version: | |
- 8.x | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Pack | |
working-directory: src/${{ matrix.project }} | |
run: | | |
dotnet pack --configuration Release -p:PackageVersion=${{ needs.generate_version.outputs.version }}-dev -p:AssemblyVersion=${{ needs.generate_version.outputs.version }} -p:PathMap="$GITHUB_WORKSPACE=/" -p:ContinuousIntegrationBuild=true | |
- name: Find nupkg file | |
id: nupkgvar | |
working-directory: src/${{ matrix.project }}/bin/Release | |
run: files=( *.nupkg) && echo "filename=${files[0]}" >> $GITHUB_OUTPUT | |
- name: Upload nupkg - Upload asset | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.dotnet-version }}-${{ steps.nupkgvar.outputs.filename }} | |
path: src/${{ matrix.project }}/bin/Release/${{ steps.nupkgvar.outputs.filename }} | |
- name: Find snupkg file | |
id: snupkgvar | |
working-directory: src/${{ matrix.project }}/bin/Release | |
run: files=( *.snupkg) && echo "filename=${files[0]}" >> $GITHUB_OUTPUT | |
- name: Upload snupkg - Upload asset | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.dotnet-version }}-${{ steps.snupkgvar.outputs.filename }} | |
path: src/${{ matrix.project }}/bin/Release/${{ steps.snupkgvar.outputs.filename }} |