From 67ac8b3d687b2ef562e670b9213c772ca9ed950a Mon Sep 17 00:00:00 2001 From: ProphetLamb Date: Sun, 25 Sep 2022 08:25:13 +0200 Subject: [PATCH] CD add aritfacts to gh release --- .github/workflows/cd.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7f6964d0..43f87033 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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