From 1c86bdcf653d5874f0075d0ebe7fd4cd4088115f Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Sat, 19 Oct 2024 13:21:15 +0800 Subject: [PATCH] ci: hg --- .github/workflows/deploy-to-hf-spaces.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-hf-spaces.yml b/.github/workflows/deploy-to-hf-spaces.yml index 31dc2938..bf40b17d 100644 --- a/.github/workflows/deploy-to-hf-spaces.yml +++ b/.github/workflows/deploy-to-hf-spaces.yml @@ -25,6 +25,8 @@ jobs: if: needs.check-secret.outputs.token-set == 'true' env: HF_TOKEN: ${{ secrets.HF_TOKEN }} + HF_REPO: ${{ secrets.HF_REPO }} + HF_USER: ${{ secrets.HF_USER }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -55,4 +57,4 @@ jobs: git lfs track "*.ttf" git add . git commit -m "GitHub deploy: ${{ github.sha }}" - git push --force https://auto:${HF_TOKEN}@huggingface.co/spaces/14790897abc/auto main \ No newline at end of file + git push --force https://${HF_USER}:${HF_TOKEN}@huggingface.co/spaces/${HF_USER}/${HF_REPO} main \ No newline at end of file