Skip to content

Commit aafed7d

Browse files
author
Sidharth123-cpu
committed
Configure GitHub Actions for test deployment to personal repo and revert baseurl
1 parent 760bdba commit aafed7d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
- name: Checkout pytorch/docs repository
3535
uses: actions/checkout@v3
3636
with:
37-
repository: Sidharth123-cpu/test-docs-site
37+
repository: Sidharth123-cpu/test-docs-site # Changed to your test repo
3838
ref: site # The target branch in your test repo
3939
token: ${{ secrets.DOCS_REPO_TOKEN }} # Personal Access Token with repo scope
4040
path: pytorch-docs
4141

4242
- name: Prepare deployment directory
4343
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/
44+
mkdir -p pytorch-docs/
45+
rsync -av --delete compile-graph-break-site/gbid_directory/ pytorch-docs/
4646
working-directory: ${{ github.workspace }}
4747

4848
- name: Commit and Push to docs repo
@@ -51,6 +51,6 @@ jobs:
5151
git config user.name "github-actions[bot]"
5252
git config user.email "github-actions[bot]@users.noreply.github.com"
5353
git add .
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
54+
git commit -m "Deploy: Update compile-graph-break site (Test)" || 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 # Changed to your test repo
5656
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: "/docs/repo/compile-graph-break" # Adjust this based on your actual GitHub Pages path
35+
baseurl: "/test-docs-site" # 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)