Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Sync to Hugging Face hub
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
-uses: actions/checkout@v4
with:

Check failure on line 12 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
fetch-depth: 0
-name: Add remote
env:
HF: ${{secrets.HF}}
run: git remote add space https://huggingface.co/spaces/kumarajit/mlops-coursera
-name: Push to hub
env:
HF: ${{secrets.HF}}
run: git push --force https://huggingface.co/spaces/kumarajit/mlops-coursera main