Skip to content

Commit

Permalink
fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashad001 committed Oct 19, 2024
1 parent ddaa5a9 commit a40f8b5
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/sync2hf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,24 @@ jobs:
with:
fetch-depth: 0

- name: Replace README content
run: |
echo "---" > README.md
echo "title: Room Aligner" >> README.md
echo "emoji: 🏠" >> README.md
echo "colorFrom: blue" >> README.md
echo "colorTo: red" >> README.md
echo "sdk: fastapi" >> README.md
echo "app_file: app.py" >> README.md
echo "pinned: false" >> README.md
echo "---" >> README.md
- name: Replace README content
run: |
echo "---" > README.md
echo "title: Room Aligner" >> README.md
echo "emoji: 🏠" >> README.md
echo "colorFrom: blue" >> README.md
echo "colorTo: red" >> README.md
echo "sdk: fastapi" >> README.md
echo "app_file: app.py" >> README.md
echo "pinned: false" >> README.md
echo "---" >> README.md
- name: Push to Hugging Face hub
env:
HF_TOKEN: ${{ secrets.HF_SECRET }}
run: |
git remote add origin https://Ashad001:${{ secrets.SECRET }}@
git remote remove origin || true
git remote add origin https://Ashad001:${{ secrets.HF_SECRET }}@huggingface.co/spaces/Ashad001/roomaligner
git add README.md
git commit -m "Update README with template"
git push --force origin main

0 comments on commit a40f8b5

Please sign in to comment.