From 28e657d5cdb960507cbb56a25c03594f8332e02d Mon Sep 17 00:00:00 2001 From: Jason Senthil Date: Wed, 3 Jan 2024 13:27:32 -0800 Subject: [PATCH] run build_docs on pull request (#664) Summary: Pull Request resolved: https://github.com/pytorch/tnt/pull/664 # Context Pull requests don't run build docs command, so if that breaks it is only seen after commit lands # This Diff 1. Makes build docs job run on all pull requests 2. creates sub job for publish that only runs on commit (so it won't publish docs for every pull request) bypass-github-export-checks Reviewed By: galrotem Differential Revision: D52379374 fbshipit-source-id: 4a61f5f1e0c359eb1f2ae002dede19ebff54d69d --- .github/workflows/build_docs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 1ab4aa4d24..892911a93e 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -3,6 +3,7 @@ name: Build and Update Docs on: push: branches: [ master ] + pull_request: # Allow one concurrent deployment concurrency: @@ -40,6 +41,10 @@ jobs: make html touch build/html/.nojekyll cd .. + publish_docs: + runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' }} + steps: - name: Deploy docs to Github pages uses: JamesIves/github-pages-deploy-action@v4.4.1 with: