Skip to content

2.12.1

2.12.1 #25

Workflow file for this run

name: Publish
env:
SOLUTION_PATH: allure-csharp.sln
BUILD_CONFIGURATION: 'Publish'
PACKAGE_OUTPUT_PATH: 'artifacts'
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Setup .NET Core SDK'
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
- name: 'Restore packages'
run: |
dotnet restore ${{ env.SOLUTION_PATH }}
# Use AspectInjector 2.8.2 which, unlike 2.8.1, correctly sets PdbChecksum
# The only reason we're still referencing 2.8.1 from projects is that
# 2.8.2 doesn't work well on Mac OS ARM
- name: 'Build project using dotnet'
run: |
dotnet build ${{ env.SOLUTION_PATH }}\
--no-restore\
--configuration ${{ env.BUILD_CONFIGURATION }}\
-p:ContinuousIntegrationBuild=true\
"-p:AspectInjector_Location=${{ github.workspace }}/build/AspectInjector/linux-x64/AspectInjector"
- name: 'Pack project'
run: |
dotnet pack ${{ env.SOLUTION_PATH }}\
--no-restore\
--no-build\
--configuration ${{ env.BUILD_CONFIGURATION }}\
"-p:PackageOutputPath=${{ github.workspace }}/${{ env.PACKAGE_OUTPUT_PATH }}"
- name: 'NuGet publish'
run: |
dotnet nuget push "${{ env.PACKAGE_OUTPUT_PATH }}/*.nupkg"\
-k ${NUGET_TOKEN}\
-s https://api.nuget.org/v3/index.json
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}