fix: revert to repo-level HF_TOKEN secret (drop environment binding)
Browse files
.github/workflows/deploy.yml
CHANGED
|
@@ -9,7 +9,6 @@ jobs:
|
|
| 9 |
deploy:
|
| 10 |
name: Push to HuggingFace Space
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
-
environment: HF_TOKEN
|
| 13 |
steps:
|
| 14 |
- name: Checkout full history
|
| 15 |
uses: actions/checkout@v4
|
|
@@ -24,7 +23,7 @@ jobs:
|
|
| 24 |
|
| 25 |
- name: Push to Hugging Face Space
|
| 26 |
env:
|
| 27 |
-
HF_TOKEN: ${{ secrets.
|
| 28 |
run: |
|
| 29 |
if [ -z "$HF_TOKEN" ]; then
|
| 30 |
echo "::error::HF_TOKEN secret is not set. Go to repo Settings → Secrets → Actions → New secret"
|
|
@@ -35,7 +34,7 @@ jobs:
|
|
| 35 |
|
| 36 |
- name: Sync LLM secrets to HuggingFace Space
|
| 37 |
env:
|
| 38 |
-
HF_TOKEN: ${{ secrets.
|
| 39 |
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
|
| 40 |
NVIDIA_MODEL: ${{ secrets.NVIDIA_MODEL }}
|
| 41 |
NVIDIA_BASE_URL: ${{ secrets.NVIDIA_BASE_URL }}
|
|
|
|
| 9 |
deploy:
|
| 10 |
name: Push to HuggingFace Space
|
| 11 |
runs-on: ubuntu-latest
|
|
|
|
| 12 |
steps:
|
| 13 |
- name: Checkout full history
|
| 14 |
uses: actions/checkout@v4
|
|
|
|
| 23 |
|
| 24 |
- name: Push to Hugging Face Space
|
| 25 |
env:
|
| 26 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 27 |
run: |
|
| 28 |
if [ -z "$HF_TOKEN" ]; then
|
| 29 |
echo "::error::HF_TOKEN secret is not set. Go to repo Settings → Secrets → Actions → New secret"
|
|
|
|
| 34 |
|
| 35 |
- name: Sync LLM secrets to HuggingFace Space
|
| 36 |
env:
|
| 37 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 38 |
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
|
| 39 |
NVIDIA_MODEL: ${{ secrets.NVIDIA_MODEL }}
|
| 40 |
NVIDIA_BASE_URL: ${{ secrets.NVIDIA_BASE_URL }}
|