Skip to content

Commit 7da3ea7

Browse files
committed
Upload an artifact of release/, zip within zip
Yes, this will create a zip inside a zip due to how actions/upload-artifact@v3 currently works. See actions/upload-artifact/issues/3 in GitHub for details. But it will let me inspect the result of the release zip without having to create a release.
1 parent 39ffe5e commit 7da3ea7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/dotnet.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,15 @@ jobs:
184184
--include-symbols
185185
--output artifacts/
186186
187-
- name: Inspect artifacts/ directory after Pack
187+
- name: Inspect artifacts directory
188188
run: dir artifacts/
189189

190-
- name: Archive nupkg-files
190+
- name: Archive artifacts directory
191191
uses: actions/upload-artifact@v3
192192
with:
193-
name: Lussatite.FeatureManagement.nupkg-files.${{ env.RELEASE_VERSION }}
193+
name: Lussatite.FeatureManagement.artifacts.${{ env.RELEASE_VERSION }}
194194
path: |
195-
artifacts/*.nupkg
196-
artifacts/*.snupkg
195+
artifacts/
197196
198197
- name: Create GitHub Release
199198
if: ${{ env.RELEASE_CREATE }}
@@ -214,9 +213,16 @@ jobs:
214213
recursive: true
215214
dest: release/${{ env.SOLUTION_NAME }}-${{ env.RELEASE_VERSION }}.zip
216215

217-
- name: Inspect release/ directory
216+
- name: Inspect release directory
218217
run: dir release/
219218

219+
- name: Archive release directory
220+
uses: actions/upload-artifact@v3
221+
with:
222+
name: Lussatite.FeatureManagement.release.${{ env.RELEASE_VERSION }}
223+
path: |
224+
release/
225+
220226
- name: Attach Zip to GitHub Release
221227
if: ${{ env.RELEASE_CREATE }}
222228
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)