Commit 171a65d3 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Fix doc deloyment condition (#3294)

Summary:
Follow-up of https://github.com/pytorch/audio/issues/3292

Doc deployment is gated by branch_name == nightly, but nightly branch fires push and PR events and there will be two deployment jobs.

This commit specify push event.

Pull Request resolved: https://github.com/pytorch/audio/pull/3294

Reviewed By: hwangjeff

Differential Revision: D45501983

Pulled By: mthrok

fbshipit-source-id: 8eb66b463800f6a30affafb27f5f2448a561cfe1
parent d8a095ef
...@@ -79,7 +79,7 @@ jobs: ...@@ -79,7 +79,7 @@ jobs:
mv docs/build/html /artifacts/ mv docs/build/html /artifacts/
commit: commit:
if: github.repository == 'pytorch/audio' if: ${{ (github.repository == 'pytorch/audio') && ((github.event_name == 'push') && (github.ref_name == 'nightly')) }}
permissions: permissions:
# Required for `git push` # Required for `git push`
# Note: # Note:
...@@ -97,11 +97,10 @@ jobs: ...@@ -97,11 +97,10 @@ jobs:
with: with:
name: docs name: docs
- name: Update nightly doc - name: Update nightly doc
# TODO: add tag-based process (need to handle the main directory name)
if: github.ref_name == 'nightly'
run: | run: |
set -x set -x
# TODO: add tag-based process (need to handle the main directory name)
rm -rf main rm -rf main
mv html main mv html main
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment