diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccda305..db1cedc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,19 @@ -name: Sync to Hugging Face hub +name: Sync with Hugging Face Hub + on: push: - branches: [main] - - # to run this workflow manually from the Actions tab - workflow_dispatch: + branches: + - main jobs: - sync-to-hub: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - lfs: true - - name: Push to hub - env: - HF_TOKEN: ${{ secrets.HF_TOKEN }} - run: git push https://OdiaGenAI:$HF_TOKEN@huggingface.co/spaces/OdiaGenAI/Olive_scrapper main + - name: Sync with Hugging Face + uses: nateraw/huggingface-sync-action@v0.0.4 + with: + github_repo_id: OdiaGenAI/Olive_Scrapper + huggingface_repo_id: OdiaGenAI/Olive_scrapper + repo_type: space + space_sdk: streamlit + hf_token: ${{ secrets.HF_TOKEN }}