diff --git a/.github/workflows/docs-release.yaml b/.github/workflows/docs-release.yaml index d7ddcd56a39..debe147bfb8 100644 --- a/.github/workflows/docs-release.yaml +++ b/.github/workflows/docs-release.yaml @@ -71,8 +71,8 @@ jobs: git config --global user.email "${GITHUB_USER}@tenstorrent.com" git config --global user.name "${GITHUB_USER}" echo "About to clone" - git clone https://${GITHUB_USER}:${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/docs-test.git - git remote set-url origin https://${GITHUB_USER}::${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/docs-test.git + git clone https://${GITHUB_USER}:${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/tenstorrent.github.io.git + git remote set-url origin https://${GITHUB_USER}::${{ secrets.TTBOT_DOCS_ACCESS }}@github.com/tenstorrent/tenstorrent.github.io.git - name: Package TT-Metalium Docs run: | echo "Preparing tt-metalium docs assets" @@ -81,26 +81,35 @@ jobs: cp -Lr docs/source/tt-metalium/* tt-metalium rm tt-metalium/conf.py # Do not change conf.py echo "Copying the docs into the repo" - cp -r tt-metalium/* docs-test/tt-metalium + cp -r tt-metalium/* tenstorrent.github.io/tt-metalium - name: Package TT-NN Docs run: | mkdir ttnn-docs cp -Lr docs/doxygen_build ttnn-docs cp -Lr docs/source/ttnn/* ttnn-docs rm ttnn-docs/conf.py # Do not change conf.py + echo "Copy tutorials and examples for TTNN from a different repo area." + cp -Lr ttnn/examples ttnn-docs/ttnn + echo "Make sure the links are updated in ttnn/usage.rst to the correct spot for the tutorials and examples." + sed -i "s/..\/..\/..\/..\/ttnn\/examples/examples/g" ttnn-docs/ttnn/usage.rst + + echo "Change tutorial and installation links in TTNN Get Started." + sed -i "s/.\/..\/ttnn\/ttnn//g" ttnn-docs/ttnn/get_started.rst + sed -i "s/.\/ttnn\/installing/\/installing/g" ttnn-docs/ttnn/get_started.rst + echo "Copying the docs into the repo" - cp -r ttnn-docs/* docs-test/ttnn + cp -r ttnn-docs/* tenstorrent.github.io/ttnn - name: Push new versions to the Docs repo for publishing run: | - cd docs-test + cd tenstorrent.github.io echo "Register new documentation versions" python update_tags.py tt-metalium $DOCS_VERSION python update_tags.py ttnn $DOCS_VERSION - + git checkout -b test_v51_deploy git add . git commit -m "Update ttnn and tt-metalium docs from pipeline ${{ github.run_id }} with tag $DOCS_VERSION" echo "Tag commits to identify different versions." git tag -a ttnn_$DOCS_VERSION -m "ttnn and tt-metalium documentation version $DOCS_VERSION" git tag -a tt-metalium_$DOCS_VERSION -m "ttnn and tt-metalium documentation version $DOCS_VERSION" echo "Pushing the new docs" - # git push && git push --tags + git push -u origin test_v51_deploy && git push --tags