Spaces:
Running
Running
Update GitHub Actions workflow: change branch from edge to main and update push command
Browse files
.github/workflows/deploy_space.yml
CHANGED
@@ -8,8 +8,8 @@ on:
|
|
8 |
jobs:
|
9 |
deploy:
|
10 |
runs-on: ubuntu-latest
|
11 |
-
|
12 |
-
|
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
|
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
|