Thomas (Tom) Gardos commited on
Commit
81a188d
·
unverified ·
2 Parent(s): 7cd6aa0 13949e1

Merge pull request #73 from DL4DS/prod-hf-push

Browse files
Files changed (2) hide show
  1. .github/workflows/push_to_hf_space.yml +14 -12
  2. README.md +9 -0
.github/workflows/push_to_hf_space.yml CHANGED
@@ -1,19 +1,21 @@
1
- name: Sync with Hugging Face Hub
2
 
3
  on:
4
  push:
5
- branches:
6
- - main
 
 
7
 
8
  jobs:
9
- build:
10
  runs-on: ubuntu-latest
11
  steps:
12
- - name: Sync with Hugging Face
13
- uses: nateraw/[email protected]
14
- with:
15
- github_repo_id: DL4DS/dl4ds_tutor
16
- huggingface_repo_id: dl4ds/dl4ds_tutor
17
- repo_type: space
18
- space_sdk: static
19
- hf_token: ${{ secrets.HF_TOKEN }}
 
1
+ name: Push Production to HuggingFace
2
 
3
  on:
4
  push:
5
+ branches: [main]
6
+
7
+ # run this workflow manuall from the Actions tab
8
+ workflow_dispatch:
9
 
10
  jobs:
11
+ sync-to-hub:
12
  runs-on: ubuntu-latest
13
  steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+ - name: Deploy Production (main) to HuggingFace
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: git push --force https://trgardos:$HF_TOKEN@huggingface.co/spaces/dl4ds/dl4ds_tutor main:main
README.md CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  # DL4DS Tutor 🏃
2
 
3
  Check out the configuration reference at [Hugging Face Spaces Config Reference](https://huggingface.co/docs/hub/spaces-config-reference).
 
1
+ ---
2
+ title: AI Class Tutor
3
+ description: An LLM based AI class tutor with RAG on DL4DS course
4
+ emoji: 🐶
5
+ colorFrom: red
6
+ colorTo: green
7
+ sdk: docker
8
+ app_port: 7860
9
+ ---
10
  # DL4DS Tutor 🏃
11
 
12
  Check out the configuration reference at [Hugging Face Spaces Config Reference](https://huggingface.co/docs/hub/spaces-config-reference).