Skip to content

Commit

Permalink
psuh nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Aug 26, 2024
1 parent dab6375 commit d1a4c63
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,16 @@ jobs:
cd NameGenerator
dotnet tool restore
dotnet r pack
- name: 'Upload package'
if: startsWith(github.ref, 'refs/tags/v') # This line ensures the step runs only if a tag version is present
uses: actions/upload-artifact@v2
with:
name: data_${{github.run_number}}
path: src/NameGenerator/PACK/*symbols.nupkg
retention-days: 1

- name: push nuget
if: startsWith(github.ref, 'refs/tags/v') # This line ensures the step runs only if a tag version is present
run: |
dotnet nuget push ${{github.workspace}}/src/NameGenerator/PACK/*symb*.*pkg --api-key ${{ secrets.NUGETAPIKEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit d1a4c63

Please sign in to comment.