Skip to content

Commit 2c0d5ee

Browse files
Merge pull request #15 from pytorch-labs/updated_deployment
Updated deployment
2 parents 8d1a82f + 8281a40 commit 2c0d5ee

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,26 @@ jobs:
3131
run: npm run build
3232
working-directory: compile-graph-break-site
3333

34-
- name: Checkout pytorch/docs repository
34+
- name: Checkout test-docs-site repository
3535
uses: actions/checkout@v3
3636
with:
37-
repository: Sidharth123-cpu/test-docs-site # Changed to your test repo
37+
repository: Sidharth123-cpu/test-docs-site
3838
ref: site # The target branch in your test repo
3939
token: ${{ secrets.DOCS_REPO_TOKEN }} # Personal Access Token with repo scope
40-
path: pytorch-docs
40+
path: pytorch-docs # This is still the local directory name
4141

4242
- name: Prepare deployment directory
43-
run: rsync -av --delete compile-graph-break-site/gbid_directory/ pytorch-docs/
43+
run: |
44+
mkdir -p pytorch-docs/docs/repo/compile-graph-break
45+
rsync -av --delete compile-graph-break-site/gbid_directory/ pytorch-docs/docs/repo/compile-graph-break/
4446
working-directory: ${{ github.workspace }}
4547

4648
- name: Commit and Push to docs repo
4749
run: |
50+
cd pytorch-docs
4851
git config user.name "github-actions[bot]"
4952
git config user.email "github-actions[bot]@users.noreply.github.com"
5053
git add .
51-
git commit -m "Deploy: Update compile-graph-break site (Test)" || echo "No changes to commit"
52-
git push https://x-access-token:${{ secrets.DOCS_REPO_TOKEN }}@github.com/Sidharth123-cpu/test-docs-site.git site # Changed to your test repo
53-
working-directory: pytorch-docs # Changed this line to ensure git commands run in the correct directory
54+
git commit -m "Deploy: Update compile-graph-break site" || echo "No changes to commit"
55+
git push https://x-access-token:${{ secrets.DOCS_REPO_TOKEN }}@github.com/Sidharth123-cpu/test-docs-site.git site
56+
working-directory: ${{ github.workspace }}

generate-site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ description: A registry of PyTorch Dynamo graph breaks.
3232
3333
# Base URL for the site
3434
# This is crucial for correct linking on GitHub Pages
35-
baseurl: "/test-docs-site/docs/repo/compile-graph-break" # Adjust this based on your actual GitHub Pages path
35+
baseurl: "/repo/compile-graph-break" # Adjust this based on your actual GitHub Pages path
3636
3737
# Build settings
3838
theme: jekyll-theme-minimal # Or any other Jekyll theme you prefer

0 commit comments

Comments
 (0)