baxin commited on
Commit
bd308dc
·
1 Parent(s): 5ce6275

Update GitHub Actions workflow: change branch from edge to main and update push command

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy_space.yml +3 -3
.github/workflows/deploy_space.yml CHANGED
@@ -8,8 +8,8 @@ on:
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,5 +26,5 @@ jobs:
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/PromptGenerator
30
  git push --force space main: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 main:main