venkat23's picture
Track binaries with LFS, other files normally
d08dd3f
raw
history blame contribute delete
818 Bytes
name: Deploy to Hugging Face Spaces
on:
pull_request:
types: [opened, synchronize]
jobs:
deploy_pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy to PR Space
uses: huggingface/space-deploy@v1
with:
hf_token: ${{ secrets.HF_TOKEN }}
space_id: your-hf-username/portfolio-agent-pr # Replace with your HF username
branch: ${{ github.head_ref }}
- name: Comment on PR
uses: thollander/actions-comment-pull-request@v1
with:
message: |
๐Ÿš€ A preview of your changes is available here:
https://huggingface.co/spaces/your-hf-username/portfolio-agent-pr # Replace with your HF username
github_token: ${{ secrets.GITHUB_TOKEN }}