baxin commited on
Commit
6735a2f
·
1 Parent(s): d4acb0c

update workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy_space.yml +3 -1
.github/workflows/deploy_space.yml CHANGED
@@ -8,6 +8,8 @@ on:
8
  jobs:
9
  deploy:
10
  runs-on: ubuntu-latest
 
 
11
  steps:
12
  - name: Checkout code
13
  uses: actions/checkout@v4
@@ -24,5 +26,5 @@ jobs:
24
  HF_TOKEN: ${{ secrets.HF_TOKEN }} # use hf_token from GitHub secrets
25
  run: |
26
  # add hugging face space as remote
27
- git remote add space https://baxin:${HF_TOKEN}@huggingface.co/spaces/baxin/image_prompt_generator
28
  git push --force space edge:main
 
8
  jobs:
9
  deploy:
10
  runs-on: ubuntu-latest
11
+ env:
12
+ SPACE_NAME: PromptGenerator
13
  steps:
14
  - name: Checkout code
15
  uses: actions/checkout@v4
 
26
  HF_TOKEN: ${{ secrets.HF_TOKEN }} # use hf_token from GitHub secrets
27
  run: |
28
  # add hugging face space as remote
29
+ git remote add space https://baxin:${HF_TOKEN}@huggingface.co/spaces/baxin/${SPACE_NAME}
30
  git push --force space edge:main