Skip to content

Commit 88db36e

Browse files
authored
CI: Store Artifacts across builds (#167)
1 parent 86a9ec9 commit 88db36e

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,31 @@ jobs:
6767
- name: "Dotnet Cake Pack"
6868
run: dotnet cake --target=Pack
6969
shell: pwsh
70+
- name: "Upload NuGet packages"
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: nuget-packages-${{ matrix.dotnet-version }}
74+
path: ./Artifacts/*.nupkg
75+
7076
publish:
7177
needs: build
7278
runs-on: ubuntu-latest
7379
steps:
74-
- name: Checkout code
75-
uses: actions/[email protected]
80+
- name: "Download NuGet packages"
81+
uses: actions/download-artifact@v4
82+
with:
83+
name: nuget-packages-6.0.x
84+
path: ./Artifacts
85+
- name: "Download NuGet packages"
86+
uses: actions/download-artifact@v4
87+
with:
88+
name: nuget-packages-7.0.x
89+
path: ./Artifacts
90+
- name: "Download NuGet packages"
91+
uses: actions/download-artifact@v4
92+
with:
93+
name: nuget-packages-8.0.x
94+
path: ./Artifacts
7695

7796
- name: Push to NuGet
7897
if: github.event_name == 'release'

0 commit comments

Comments
 (0)