Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
add git actions for deployment to hugging face
  • Loading branch information
urwithajit9 authored Feb 16, 2024
1 parent 39fd40c commit 0fb8b7b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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:
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



0 comments on commit 0fb8b7b

Please sign in to comment.