Skip to content

Commit

Permalink
CI: Store Artifacts across builds (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo authored May 28, 2024
1 parent 86a9ec9 commit 88db36e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,31 @@ jobs:
- name: "Dotnet Cake Pack"
run: dotnet cake --target=Pack
shell: pwsh
- name: "Upload NuGet packages"
uses: actions/upload-artifact@v4
with:
name: nuget-packages-${{ matrix.dotnet-version }}
path: ./Artifacts/*.nupkg

publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: "Download NuGet packages"
uses: actions/download-artifact@v4
with:
name: nuget-packages-6.0.x
path: ./Artifacts
- name: "Download NuGet packages"
uses: actions/download-artifact@v4
with:
name: nuget-packages-7.0.x
path: ./Artifacts
- name: "Download NuGet packages"
uses: actions/download-artifact@v4
with:
name: nuget-packages-8.0.x
path: ./Artifacts

- name: Push to NuGet
if: github.event_name == 'release'
Expand Down

0 comments on commit 88db36e

Please sign in to comment.