Skip to content

refactor: place default options into base_options #4

refactor: place default options into base_options

refactor: place default options into base_options #4

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: |
COMMIT_MESSAGE=$(git show -s --format=%s)
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 "$COMMIT_MESSAGE"
git push --force-with-lease