Skip to content

Commit 8b5ece3

Browse files
author
Sidharth123-cpu
committed
Final configuration for test deployment to personal repo
1 parent f74da57 commit 8b5ece3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 8 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 pytorch/docs repository # This name is misleading for the test setup
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 # This is the *actual* repository being checked out
3838
ref: site # The target branch in your test repo
39-
token: ${{ secrets.DOCS_REPO_TOKEN }} # Personal Access Token with repo scope
40-
path: pytorch-docs
39+
token: ${{ secrets.DOCS_REPO_TOKEN }}
40+
path: pytorch-docs # THIS IS THE KEY! It's the local folder 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 }}

0 commit comments

Comments
 (0)