Spaces:
Sleeping
Sleeping
Caner Giden commited on
Refactor deploy workflow for Hugging Face Space
Browse files1 unmodified line234567891011121314151617181920212223241 unmodified lineon:push:branches: [ main ]jobs:deploy:runs-on: ubuntu-lateststeps:- name: Checkout repository (full history)uses: actions/checkout@v4with:fetch-depth: 0- name: Set git identityrun: |git config --global user.name "ForgeFlow CI"git config --global user.email "ci@forgeflow.local"- name: Push to Hugging Face Spacerun: |git remote add hf https://forgeflow-ai:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/forgeflow-ai/forgeflow-studiogit push hf HEAD:main --force1 unmodified line2345678910111213141516171819201 unmodified lineon:push:branches: [ "main" ]jobs:deploy:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- name: Push to Hugging Face Spaceenv:HF_TOKEN: ${{ secrets.HF_TOKEN }}run: |git config user.name "github-actions"git config user.email "actions@github.com"git remote add hf https://forgeflow-ai:${HF_TOKEN}@huggingface.co/spaces/forgeflow-ai/forgeflow-studiogit push hf HEAD:main --force
.github/workflows/deploy-to-hf.yml+7-11