Skip to content

Commit fae6da8

Browse files
author
Vincent Moens
committed
amend
1 parent 37ab9b1 commit fae6da8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ jobs:
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

0 commit comments

Comments
 (0)