Skip to content

Commit 3696859

Browse files
committed
Attempt to fix upload-artifact CI step
1 parent 333005f commit 3696859

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/main.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ jobs:
100100
shell: bash
101101
run: build/build.sh prepack -platform $PLATFORM -configuration $BUILD_CONFIGURATION
102102

103-
- uses: actions/upload-artifact@v3
103+
- uses: actions/upload-artifact@v4
104+
# We only need a release version of this in the create_package job
105+
if: matrix.build-cfg == "Release"
104106
with:
105-
name: intermediate
107+
name: intermediate-${{ matrix.build-cfg }}-${{ matrix.platform }}
108+
retention-days: 7
109+
overwrite: true
106110
path: |
107111
artifacts
108112
include/**/*.h
@@ -127,9 +131,9 @@ jobs:
127131
- name: Set version
128132
run: nbgv cloud --all-vars
129133

130-
- uses: actions/download-artifact@v3
134+
- uses: actions/download-artifact@v4
131135
with:
132-
name: intermediate
136+
name: intermediate-Release-x64
133137

134138
- name: Setup
135139
shell: bash
@@ -140,7 +144,7 @@ jobs:
140144
run: build/build.sh pack -configuration $BUILD_CONFIGURATION
141145

142146
- name: Upload package
143-
uses: actions/upload-artifact@v3
147+
uses: actions/upload-artifact@v4
144148
with:
145149
name: CppSharp.nupkg
146150
path: |

0 commit comments

Comments
 (0)