name: Sync to Hugging Face hub - Obsolete to avoid app disruptions on: push: branches: [main] # to run this workflow manually from the Actions tab workflow_dispatch: jobs: sync-to-hub: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Debug Variable run: echo "HG value:$HG" - name: Add remote env: HF_TOKEN: ${{ secrets.HG }} run: git remote add space https://OmarSamehSaid:$HG@huggingface.co/spaces/OmarSamehSaid/Text-Summerization - name: Push to hub env: HF_TOKEN: ${{ secrets.HG }} run: git push --force https://OmarSamehSaid:$HF_TOKEN@huggingface.co/spaces/OmarSamehSaid/Text-Summerization main