Skip to content

Commit

Permalink
Update package_push_nuget.org.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PollosD authored Jan 17, 2022
1 parent 45951f4 commit cade72b
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/package_push_nuget.org.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Package Push Nuget
on:
create:
Expand All @@ -20,19 +19,27 @@ jobs:
steps:
- name: git pull
uses: actions/checkout@v2

- name: run a one-line script
run: env

- name: setting dotnet version
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true

- name: restore
run: dotnet restore

- name: build
run: dotnet build --no-restore

- name: pack
run: dotnet pack --include-symbols -p:PackageVersion=0.0.$GITHUB_RUN_ID

- name: package push
run: |
env
echo "------------------------------------------------------"
ls
dotnet build
dotnet pack --include-symbols -p:PackageVersion=0.0.$GITHUB_RUN_ID
dotnet nuget push "**/*.symbols.nupkg" -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push "**/*.symbols.nupkg" -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json



0 comments on commit cade72b

Please sign in to comment.