-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.2 KB
/
sync2hf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Sync to Hugging Face hub
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.email "ashad001sp@gmail.com"
git config --global user.name "Ashad"
- 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: docker" >> 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 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