Skip to content

#8068: What could be the syntax error? #3091

#8068: What could be the syntax error?

#8068: What could be the syntax error? #3091

name: [Internal] Docs Build latest docs and deploy to GitHub pages on main

Check failure on line 1 in .github/workflows/docs-latest-public.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs-latest-public.yaml

Invalid workflow file

You have an error in your yaml syntax
on:
workflow_call:
concurrency:
# Note that people may spam the post-commit pipeline on their branch, and
# we have this docs pipeline in the post-commit pipeline, then people
# would have to wait until the previous one fully completes. That may be
# ok because each post-commit pipeline definitely takes more than 30 min
group: "pages-${{ github.ref }}"
cancel-in-progress: false
jobs:
build-deploy-docs:
strategy:
# Do not fail-fast because we need to ensure all tests go to completion
# so we try not to get hanging machines
fail-fast: false
matrix:
arch: [grayskull]
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
DOCS_VERSION: latest
ARCH_NAME: ${{ matrix.arch }}
LOGURU_LEVEL: INFO
LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib
environment: dev
runs-on: ${{ matrix.arch }}
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/checkout-with-submodule-lfs@v2.0.0
- name: Set up dynamic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ matrix.runner-info.arch }}
- name: Extract files
run: tar -xvf ttm_${{ matrix.runner-info.arch }}.tar
- uses: ./.github/actions/install-python-deps
- name: Build Docs
timeout-minutes: 15
run: |
source ${{ github.workspace }}/python_env/bin/activate
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
./tests/scripts/run_build_docs.sh
- name: Build additional ttnn sweeps docs
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
export PYTHONPATH=$(pwd)
source build/python_env/bin/activate
cd docs/
make ttnn_sweeps/check_directory
make ttnn_sweeps
- name: Prepare artifact - move output
run: |
mkdir gh_pages
mv docs/build/html gh_pages/$DOCS_VERSION
- name: Prepare artifact - create .nojekyll
run: |
touch gh_pages/.nojekyll
- name: Prepare artifact - create root index
run: |
touch gh_pages/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
path: "gh_pages"
- name: Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/main' }}
id: deployment
uses: actions/deploy-pages@v4.0.4