Skip to content

Commit 0d1dfd2

Browse files
Merge pull request #10 from pytorch-labs/updated_deployment
[graph-break-website] Updated yml file with correct configs to deploy to pytorch docs
2 parents 07236fd + fad5fea commit 0d1dfd2

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ jobs:
4545
rsync -av --delete compile-graph-break-site/gbid_directory/ pytorch-docs/docs/repo/compile-graph-break/
4646
working-directory: ${{ github.workspace }}
4747

48-
- name: Commit and Push
49-
uses: stefanzweifel/git-auto-commit-action@v4
50-
with:
51-
repository: pytorch/docs
52-
branch: site
53-
commit_message: "Deploy: Update compile-graph-break site"
54-
file_pattern: 'docs/repo/compile-graph-break/**'
55-
commit_options: '--no-verify --signoff'
56-
push_options: '--force'
57-
token: ${{ secrets.DOCS_REPO_TOKEN }}
58-
working_directory: pytorch-docs
48+
- name: Commit and Push to docs repo
49+
run: |
50+
cd pytorch-docs
51+
git config user.name "github-actions[bot]"
52+
git config user.email "github-actions[bot]@users.noreply.github.com"
53+
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/pytorch/docs.git site
56+
working-directory: ${{ github.workspace }}

generate-site.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const fs = require('fs');
22
const path = require('path');
3-
// Removed 'marked' dependency as Jekyll will handle Markdown rendering
43

54
const REGISTRY_URL = 'https://raw.githubusercontent.com/pytorch/pytorch/main/torch/_dynamo/graph_break_registry.json';
65

0 commit comments

Comments
 (0)