Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
CD add aritfacts to gh release
Browse files Browse the repository at this point in the history
  • Loading branch information
ProphetLamb committed Sep 25, 2022
1 parent 1c28da1 commit 67ac8b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build -c:Release -o:$(pwd)/publish
run: dotnet build -c:Release
- name: Pack
run: dotnet pack -c:Release -o:$(pwd)/publish
- name: Artifacts
uses: actions/upload-artifact@v3
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: release-artifacts
path: $(pwd)/publish
retention-days: 1
files: $(pwd)/publish/*.nupkg
- name: Publish
run: dotnet nuget push $(pwd)/publish/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit 67ac8b3

Please sign in to comment.