Skip to content

Commit

Permalink
2024-09-12 nightly release (760758f)
Browse files Browse the repository at this point in the history
  • Loading branch information
pytorchbot committed Sep 12, 2024
1 parent 82c28fd commit 06572ad
Show file tree
Hide file tree
Showing 8 changed files with 2,901 additions and 46 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
workflow_dispatch:
pull_request:

jobs:
build_docs_job:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -78,6 +80,11 @@ jobs:
cd ./docs
conda run -n build_binary make html
cd ..
- name: Upload Built-Docs
uses: actions/upload-artifact@v3
with:
name: Built-Docs
path: docs/build/html/
- name: Get output time
run: echo "The time was ${{ steps.build.outputs.time }}"
- name: Deploy
Expand All @@ -86,3 +93,28 @@ jobs:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html # The folder the action should deploy.

doc-preview:
runs-on: [linux.2xlarge]
needs: build_docs_job
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: Built-Docs
path: docs
- name: Add no-index tag
run: |
find docs -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
- name: Upload docs preview
uses: seemethere/upload-artifact-s3@v5
if: ${{ github.event_name == 'pull_request' }}
with:
retention-days: 14
s3-bucket: doc-previews
if-no-files-found: error
path: docs
s3-prefix: pytorch/torchrec/${{ github.event.pull_request.number }}
Loading

0 comments on commit 06572ad

Please sign in to comment.