Skip to content

Commit 9c6ac34

Browse files
Merge pull request #13 from pytorch-labs/updated_deployment
Fix: GitHub Actions working directory for test deployment
2 parents 97bbc2e + a1ddba8 commit 9c6ac34

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,14 @@ jobs:
4040
path: pytorch-docs
4141

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

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

0 commit comments

Comments
 (0)