Skip to content

feat: add reverse proxy #6

feat: add reverse proxy

feat: add reverse proxy #6

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
paths:
- .github/workflows/main.yml
- Dockerfile
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set Git config
run: |
git config --global user.email github-actions[bot]@users.noreply.github.com
git config --global user.name github-actions[bot]
- name: Push to Hugging Face Spaces
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
run: |
git clone https://$GITHUB_REPOSITORY_OWNER:[email protected]/spaces/$GITHUB_REPOSITORY_OWNER/$REPOSITORY_NAME
pushd $REPOSITORY_NAME
mv ../Dockerfile .
git add Dockerfile
git commit --amend -m "$(git show -s --format=%s)"
git push --force-with-lease