From 59f29fc77f7dc89540a747a5f187d71eb16e3871 Mon Sep 17 00:00:00 2001 From: ivano scifoni Date: Mon, 23 Oct 2023 09:22:51 +0200 Subject: [PATCH] Update wfnetcorev2.yaml --- .github/workflows/wfnetcorev2.yaml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/wfnetcorev2.yaml b/.github/workflows/wfnetcorev2.yaml index 7bde791..5713f25 100644 --- a/.github/workflows/wfnetcorev2.yaml +++ b/.github/workflows/wfnetcorev2.yaml @@ -104,23 +104,16 @@ jobs: #|| startsWith(github.ref, 'refs/heads/v') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Download Artifact + uses: actions/download-artifact@v3 + with: + name: nupkg + - name: Display structure of downloaded files + run: ls -R - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: dotnet-version: 7.x - source-url: https://nuget.pkg.github.com/shaprcode-it/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Create Release NuGet package -# run: dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} -o nupkg src/$PROJECT_NAME/$PROJECT_NAME.*proj - run: dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} ./SharpHelpers/SharpHelpers.sln -# - name: Push to GitHub Feed -# run: | -# for f in ./nupkg/*.nupkg -# do -# curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED -# done - name: Publish the package to GitHub run: dotnet nuget push "*.nupkg" --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key ${{ secrets.GITHUB_TOKEN }} - name: Push to NuGet Feed