Skip to content

Commit 194d7f7

Browse files
committed
Fix CI NuGet package creation regression.
1 parent 9a4c48d commit 194d7f7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,17 @@ jobs:
105105
- name: Upload Artifacts
106106
# We only need a release version of this in the create_package job
107107
if: matrix.build-cfg == 'Release'
108-
uses: actions/upload-artifact@v4
108+
uses: actions/upload-artifact@v5
109109
with:
110-
name: intermediate-${{ matrix.build-cfg }}-${{ matrix.platform }}
110+
name: intermediate-${{ runner.os }}-${{ matrix.build-cfg }}-${{ matrix.platform }}
111111
retention-days: 7
112-
overwrite: true
113112
path: |
114113
artifacts
115114
include/**/*.h
116115
117116
create_package:
118117
runs-on: windows-2022
119118
needs: build
120-
if: |
121-
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.ref, 'nuget') || startsWith(github.ref, 'refs/tags/v'))) ||
122-
(github.event.pull_request.head.repo.full_name != github.repository && (contains(github.event.pull_request.head.ref, 'nuget') || startsWith(github.event.pull_request.head.ref, 'refs/tags/v')))
123119

124120
env:
125121
DOTNET_NOLOGO: true
@@ -134,9 +130,10 @@ jobs:
134130
- name: Set version
135131
run: nbgv cloud --all-vars
136132

137-
- uses: actions/download-artifact@v4
133+
- uses: actions/download-artifact@v5
138134
with:
139-
name: intermediate-Release-x64
135+
pattern: intermediate*
136+
merge-multiple: true
140137

141138
- name: Setup
142139
shell: bash

0 commit comments

Comments
 (0)