@@ -128,7 +128,8 @@ jobs:
128
128
shell : pwsh
129
129
env :
130
130
# This contains the git tag name on release; in that case we build the docs without publishing.
131
- DOCFX_SOURCE_BRANCH_NAME : ${{ github.base_ref || github.ref_name }}
131
+ # DOCFX_SOURCE_BRANCH_NAME: ${{ github.base_ref || github.ref_name }}
132
+ DOCFX_SOURCE_BRANCH_NAME : ' master'
132
133
run : |
133
134
Write-Host "Using docfx branch name: $env:DOCFX_SOURCE_BRANCH_NAME"
134
135
cd docs
@@ -253,16 +254,17 @@ jobs:
253
254
steps :
254
255
- name : Download artifacts
255
256
uses : actions/download-artifact@v3
256
- - name : Publish to GitHub Packages
257
- env :
258
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
259
- shell : pwsh
260
- run : |
261
- dotnet nuget add source --username 'json-api-dotnet' --password "$env:GITHUB_TOKEN" --store-password-in-clear-text --name 'github' 'https://nuget.pkg.github.com/json-api-dotnet/index.json'
262
- dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github'
257
+ # - name: Publish to GitHub Packages
258
+ # env:
259
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
260
+ # shell: pwsh
261
+ # run: |
262
+ # dotnet nuget add source --username 'json-api-dotnet' --password "$env:GITHUB_TOKEN" --store-password-in-clear-text --name 'github' 'https://nuget.pkg.github.com/json-api-dotnet/index.json'
263
+ # dotnet nuget push "$env:GITHUB_WORKSPACE/packages/*.nupkg" --api-key "$env:GITHUB_TOKEN" --source 'github'
263
264
- name : Find merged pull request
264
- uses : actions-ecosystem/action-get-merged-pull-request@v1
265
265
id : find_merged_pull_request
266
+ # if: github.event_name == 'push' && github.ref == 'refs/heads/master'
267
+ uses : actions-ecosystem/action-get-merged-pull-request@v1
266
268
with :
267
269
github_token : ${{ secrets.GITHUB_TOKEN }}
268
270
# TODO: Remove test
0 commit comments