Skip to content

Commit

Permalink
Update wfnetcorev2.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
iscifoni authored Oct 23, 2023
1 parent f2957bc commit 59f29fc
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/wfnetcorev2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59f29fc

Please sign in to comment.