@@ -31,23 +31,26 @@ jobs:
31
31
run : npm run build
32
32
working-directory : compile-graph-break-site
33
33
34
- - name : Checkout pytorch/ docs repository
34
+ - name : Checkout test- docs-site repository
35
35
uses : actions/checkout@v3
36
36
with :
37
- repository : Sidharth123-cpu/test-docs-site # Changed to your test repo
37
+ repository : Sidharth123-cpu/test-docs-site
38
38
ref : site # The target branch in your test repo
39
39
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
41
41
42
42
- 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/
44
46
working-directory : ${{ github.workspace }}
45
47
46
48
- name : Commit and Push to docs repo
47
49
run : |
50
+ cd pytorch-docs
48
51
git config user.name "github-actions[bot]"
49
52
git config user.email "github-actions[bot]@users.noreply.github.com"
50
53
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