File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 15
15
16
16
env :
17
17
CONFIGURATION : " Release"
18
- ARTIFACTS_STAGING_PATH : " nupkg"
18
+ ARTIFACTS_STAGING_DIR_PATH : " nupkg"
19
19
OG_SOLUTION_PATH : " Octokit.GraphQL.sln"
20
20
OG_UNIT_TESTS_PROJ_PATH : " .\\ src\\ Octokit.GraphQL.UnitTests\\ Octokit.GraphQL.UnitTests.csproj"
21
21
OG_CORE_UNIT_TESTS_PROJ_PATH : " .\\ src\\ Octokit.GraphQL.Core.UnitTests\\ Octokit.GraphQL.Core.UnitTests.csproj"
@@ -52,22 +52,18 @@ jobs:
52
52
run : dotnet test -c ${{ env.CONFIGURATION }} --no-build ${{ env.OG_CORE_GENERATOR_UNIT_TESTS_PROJ_PATH }}
53
53
54
54
- name : Create the new package
55
- run : dotnet pack ${{ OG_PACK_PROJ_PATH }} --output ${{ env.ARTIFACTS_STAGING_PATH }}
55
+ run : dotnet pack ${{ env. OG_PACK_PROJ_PATH }} -o ${{ env.ARTIFACTS_STAGING_PATH }}
56
56
57
57
- name : Publish to GitHub Actions
58
58
uses : actions/upload-artifact@v4
59
59
with :
60
60
name : nupkg
61
- path : ${{ env.ARTIFACTS_STAGING_PATH }}/*.nupkg
61
+ path : ${{ env.ARTIFACTS_STAGING_DIR_PATH }}/*.nupkg
62
62
63
63
- name : Publish to GitHub Packages
64
64
if : github.ref == 'refs/heads/main'
65
- shell : bash
66
- run : dotnet nuget push ${{ env.ARTIFACTS_STAGING_PATH }}/*.nupkg
65
+ run : dotnet nuget push ${{ env.ARTIFACTS_STAGING_DIR_PATH }}/*.nupkg
67
66
68
67
- name : Publish to nuget.org
69
68
if : github.ref == 'refs/heads/main'
70
- shell : bash
71
- run : |
72
- dotnet nuget push ${{ env.ARTIFACTS_STAGING_PATH }}/*.nupkg --source
73
- nuget.org -k ${{ secrets.NUGET_TOKEN }}
69
+ run : dotnet nuget push ${{ env.ARTIFACTS_STAGING_DIR_PATH }}/*.nupkg -s nuget.org -k ${{ secrets.NUGET_TOKEN }}
You can’t perform that action at this time.
0 commit comments