Skip to content

Commit 49bfbd2

Browse files
Merge pull request #11 from pytorch-labs/updated_deployment
Configure GitHub Actions for test deployment to personal repo to demo that the website is deployed correctly
2 parents 0d1dfd2 + 760bdba commit 49bfbd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- name: Checkout pytorch/docs repository
3535
uses: actions/checkout@v3
3636
with:
37-
repository: pytorch/docs
38-
ref: site # The target branch in the pytorch/docs repo
37+
repository: Sidharth123-cpu/test-docs-site
38+
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

@@ -52,5 +52,5 @@ jobs:
5252
git config user.email "github-actions[bot]@users.noreply.github.com"
5353
git add .
5454
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/pytorch/docs.git site
55+
git push https://x-access-token:${{ secrets.DOCS_REPO_TOKEN }}@github.com/Sidharth123-cpu/test-docs-site.git site
5656
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)