File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 9292
9393 upload :
9494 needs : build-docs
95+ if : github.repository == 'pytorch/rl' && github.event_name == 'push' &&
96+ ((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
9597 permissions :
9698 contents : write
9799 uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
@@ -109,8 +111,9 @@ jobs:
109111 if [[ "${REF_TYPE}" == branch ]]; then
110112 if [[ "${REF_NAME}" == main ]]; then
111113 TARGET_FOLDER="${REF_NAME}"
112- else
113- TARGET_FOLDER="release-doc"
114+ # Bebug:
115+ # else
116+ # TARGET_FOLDER="release-doc"
114117 fi
115118 elif [[ "${REF_TYPE}" == tag ]]; then
116119 case "${REF_NAME}" in
@@ -135,7 +138,9 @@ jobs:
135138 rsync -a "${RUNNER_ARTIFACT_DIR}"/ "${TARGET_FOLDER}"
136139 git add "${TARGET_FOLDER}" || true
137140
138- if [[ "${TARGET_FOLDER}" == "main" ]] || [[ "${TARGET_FOLDER}" == "release-doc" ]]; then
141+ # Debug
142+ # if [[ "${TARGET_FOLDER}" == "main" ]] || [[ "${TARGET_FOLDER}" == "release-doc" ]]; then
143+ if [[ "${TARGET_FOLDER}" == "main" ]] ; then
139144 mkdir -p _static
140145 rm -rf _static/*
141146 cp -r "${TARGET_FOLDER}"/_static/* _static
You can’t perform that action at this time.
0 commit comments