Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(php-sdk): use deploy key for subtree push instead of PAT

firecrawl-spring[bot]2f35c04f6ea3
diff --git a/.github/workflows/publish-php-sdk.yml b/.github/workflows/publish-php-sdk.yml
index 21d800ce7..31fe77c6a 100644
--- a/.github/workflows/publish-php-sdk.yml
+++ b/.github/workflows/publish-php-sdk.yml
@@ -49,11 +49,17 @@ jobs:
working-directory: ./apps/php-sdk
run: composer validate --strict
+ - name: Set up SSH for firecrawl-php
+ if: ${{ env.VERSION_INCREMENTED == 'true' }}
+ uses: webfactory/[email protected]
+ with:
+ ssh-private-key: ${{ secrets.PHP_SDK_DEPLOY_KEY }}
+
- name: Subtree split and push to firecrawl-php
if: ${{ env.VERSION_INCREMENTED == 'true' }}
run: |
git subtree split --prefix=apps/php-sdk -b php-sdk-split
- git remote add php-sdk https://x-access-token:${{ secrets.PHP_SDK_GITHUB_TOKEN }}@github.com/firecrawl/firecrawl-php.git
+ git remote add php-sdk [email protected]:firecrawl/firecrawl-php.git
git push php-sdk php-sdk-split:main --force
- name: Notify Packagist