Skip to content

Commit d369e0e

Browse files
author
Dmytro Ett
committed
This surely has to work
1 parent 51aa817 commit d369e0e

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
env:
1616
NUGET_USER: ${{ secrets.NUGET_USER }}
17+
ACTIONS_STEP_DEBUG: ${{ vars.ACTIONS_STEP_DEBUG }}
1718
steps:
1819
- uses: actions/checkout@v4
1920
with:
@@ -35,6 +36,10 @@ jobs:
3536
New-Item -ItemType Directory -Force -Path artifacts | Out-Null
3637
pwsh scripts/extract-changelog.ps1 -Version $version -OutputPath artifacts/release-notes.md
3738
Write-Host "Release notes written to artifacts/release-notes.md"
39+
if ($env:ACTIONS_STEP_DEBUG -eq 'true') {
40+
Write-Host "Release notes content:"
41+
Get-Content -Path artifacts/release-notes.md
42+
}
3843
- name: Restore dependencies
3944
run: dotnet restore
4045
- name: Build
@@ -44,25 +49,11 @@ jobs:
4449
- name: E2E Tests
4550
run: pwsh test/e2e/run-e2e-tests.ps1 -ResultsDirectory TestResults/E2E -Logger trx
4651
- name: Pack
47-
shell: pwsh
48-
run: |
49-
$version = "${{ steps.release.outputs.version }}"
50-
$releaseNotes = Get-Content -Path artifacts/release-notes.md -Raw
51-
$releaseNotes = ($releaseNotes -replace "`r?`n", "; ").Replace('`', "'").Trim()
52-
$args = @(
53-
"pack",
54-
"src/AttributedDI/AttributedDI.csproj",
55-
"--no-build",
56-
"--no-restore",
57-
"-c",
58-
"Release",
59-
"-o",
60-
"artifacts",
61-
"-p:PackageVersion=$version",
62-
"-p:PackageReleaseNotes=$releaseNotes",
63-
"-p:ContinuousIntegrationBuild=true"
64-
)
65-
& dotnet @args
52+
run: >
53+
dotnet pack src/AttributedDI/AttributedDI.csproj --no-build --no-restore -c Release -o artifacts
54+
-p:PackageVersion="${{ steps.release.outputs.version }}"
55+
-p:PackageReleaseNotes="https://github.com/dmytroett/AttributedDI/blob/main/CHANGELOG.md"
56+
-p:ContinuousIntegrationBuild=true
6657
- name: Upload Test Results
6758
uses: actions/upload-artifact@v4
6859
if: ${{ always() }}

0 commit comments

Comments
 (0)