Skip to content

Commit 2324139

Browse files
committed
publish only nuget for now
1 parent 91ceeda commit 2324139

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,25 @@ jobs:
4545

4646
- name: Package
4747
shell: pwsh
48-
run: dotnet pack .\Tocsoft.GraphQLCodeGen.MsBuild\Tocsoft.GraphQLCodeGen.MsBuild.csproj -c Release -o ../packages
48+
run: dotnet pack .\Tocsoft.GraphQLCodeGen.MsBuild\Tocsoft.GraphQLCodeGen.MsBuild.csproj -c Release -o packages
4949

5050
- uses: actions/upload-artifact@v2
5151
with:
52-
name: application
53-
path: nuget/*.*
52+
name: nuget
53+
path: packages/*.nupkg
5454

5555
- name: Publish the package to GPR
5656
shell: pwsh
57-
run: dotnet nuget push packages/*.nupkg -s https://nuget.pkg.github.com/tocsoft/index.json -k ${{secrets.GITHUB_TOKEN}}
57+
run: dotnet nuget push "$((Resolve-Path packages/*.nupkg).Path)" -s https://nuget.pkg.github.com/tocsoft/index.json -k ${{secrets.GITHUB_TOKEN}}
5858

5959
- name: Publish the package to nuget.org
6060
if: github.event_name == 'release' && github.event.action == 'created'
6161
shell: pwsh
62-
run: dotnet nuget push packages/*.nupkg -k ${{secrets.NUGET_TOKEN}}
62+
run: dotnet nuget push "$((Resolve-Path packages/*.nupkg).Path)" -k ${{secrets.NUGET_TOKEN}}
6363

6464
publish-npm-pacakge:
6565
needs: test
66+
if: "false"
6667

6768
runs-on: windows-latest
6869

0 commit comments

Comments
 (0)