gordonchanfz commited on
Commit
9f3bd4f
1 Parent(s): 643c820

Delete .github/workflows directory

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +0 -59
.github/workflows/deploy.yml DELETED
@@ -1,59 +0,0 @@
1
- name: Restart Hugging Face Space
2
- on:
3
- workflow_dispatch:
4
- inputs:
5
- monitor_id:
6
- description: 'input_monitor_id'
7
- required: true
8
-
9
- jobs:
10
- sync-to-hub:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v4
14
- with:
15
- fetch-depth: 0
16
- lfs: true
17
- ref: main
18
-
19
- - name: Set environment variables
20
- run: |
21
- if [ "${{ github.event.inputs.monitor_id }}" = "13" ]; then
22
- export HF_TOKEN="${{ secrets.HF_1 }}"
23
- export USERNAME="GordonChan365"
24
- export SPACE="bot-example"
25
- elif [ "${{ github.event.inputs.monitor_id }}" = "21" ]; then
26
- export HF_TOKEN="${{ secrets.HF_1 }}"
27
- export USERNAME="GordonChan365"
28
- export SPACE="hf-llm-api"
29
- elif [ "${{ github.event.inputs.monitor_id }}" = "2" ]; then
30
- export HF_TOKEN="${{ secrets.HF_2 }}"
31
- export USERNAME="gordonchan"
32
- export SPACE="another-space"
33
- else
34
- echo "Invalid monitor_id"
35
- exit 1
36
- fi
37
- rm -fr .githup
38
- rm -f README.md
39
- echo "
40
- ---
41
- title: $SPACE
42
- emoji: 🏢
43
- colorFrom: yellow
44
- colorTo: red
45
- sdk: docker
46
- app_port: 23333
47
- pinned: false
48
- ---
49
- ">README.md
50
- git add -A
51
- git commit -m "update"
52
- git push -f https://$USERNAME:$HF_TOKEN@huggingface.co/spaces/$USERNAME/$SPACE main:main
53
- # - name: Update README title
54
- # run: |
55
- # sed -i "s/title: .*/title: $SPACE/" README.md
56
-
57
- # - name: Restart Space
58
- # run: |
59
- # git push -f https://$USERNAME:$HF_TOKEN@huggingface.co/spaces/$USERNAME/$SPACE main:main