Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Fix actions authentication workflow

Herumb Shandilyae0f0a4704e7c
diff --git a/.github/workflows/docs-push.yml b/.github/workflows/docs-push.yml
index 5752e6d7e..51aa099d9 100644
--- a/.github/workflows/docs-push.yml
+++ b/.github/workflows/docs-push.yml
@@ -33,13 +33,13 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- - name: Set up Git
- run: |
- git config user.name github-actions
- git config user.email [email protected]
- - name: Push docs subtree
+ - name: Push docs to separate repo
+ uses: cpina/github-action-push-to-another-repository@main
env:
- GH_PAT: ${{ secrets.GH_PAT }}
- run: |
- git remote add docs-repo https://${GH_PAT}@github.com/krypticmouse/dspy-docs.git
- git subtree push --prefix=docs docs-repo master
\ No newline at end of file
+ API_TOKEN_GITHUB: ${{ secrets.GH_PAT }}
+ with:
+ source-directory: 'docs'
+ destination-github-username: 'krypticmouse'
+ destination-repository-name: 'dspy-docs'
+ user-email: [email protected]
+ target-branch: master
\ No newline at end of file